/****************************************************************** cfillstr.c tests CFILL external module NOTE: you must use the TCC comand-line compiler for this. See book. ********/ #include extern void fillstring(unsigned char far * thestring, int stringlength, char fillchar); char *test = "Filled to the brim"; main() { printf("Before fillstring: %s\n", test); fillstring(test, strlen(test), '@' ); printf("After fillstring: %s\n", test); } /**** void fillstring(unsigned char far * thestring, int stringlength, char fillchar) { int i; for (i=0; i < stringlength; i++) thestring[i] = fillchr; } ******/