home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
program
/
compiler
/
nasm20b
/
nasm_src
/
foo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-19
|
383b
|
25 lines
#ifdef TOS
#include <stdlib.h>
#else
#include <alloc.h>
#endif
#include <string.h>
#include <stdio.h>
main()
{
char *x = "resident.o65";
int i;
static char _y[32];
char *y = _y;
i = strlen( x) + 1;
*y++ = 0xFF;
y[ i] = 0xFF;
strcpy( y, x);
if( y[ -1] == y[ i])
printf("Success\n");
else
printf( "Failure\n");
}