2005-07-01 21:00:04 +00:00
|
|
|
/* Test/example program for the base library
|
|
|
|
|
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
*/
|
1997-03-03 20:10:10 +00:00
|
|
|
#include <Foundation/NSCharacterSet.h>
|
1998-10-03 05:11:05 +00:00
|
|
|
#include <Foundation/NSAutoreleasePool.h>
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
1998-10-03 05:11:05 +00:00
|
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
1997-03-03 20:10:10 +00:00
|
|
|
NSCharacterSet *alpha = [NSCharacterSet alphanumericCharacterSet];
|
|
|
|
|
|
|
|
if (alpha)
|
|
|
|
printf("obtained alphanumeric character set\n");
|
|
|
|
else
|
|
|
|
printf("unable to obtain alphanumeric character set\n");
|
|
|
|
|
1998-10-03 05:11:05 +00:00
|
|
|
[arp release];
|
1997-03-03 20:10:10 +00:00
|
|
|
exit(0);
|
|
|
|
}
|