mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
400 B
20 lines
400 B
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <limits.h>
|
|
|
|
void main( int argc, char **argv )
|
|
{
|
|
int c;
|
|
unsigned char *pstr;
|
|
unsigned char string[100];
|
|
|
|
strcpy(string, "ABCDEFGHIJKLMNOPQRST");
|
|
for (c = 'a'; c <= UCHAR_MAX; c++)
|
|
{
|
|
string[9] = c;
|
|
pstr = strchr( string, c);
|
|
if (!pstr)
|
|
printf("Fail - Could not find %d in %s\n", c, string);
|
|
}
|
|
return;
|
|
}
|