1 /* 2 ** Copyright 1998 - 1999 Double Precision, Inc. 3 ** See COPYING for distribution information. 4 */ 5 6 /* Remove #+comments from file read into memory. */ 7 removecomments(char * p)8void removecomments(char *p) 9 { 10 char *q; 11 12 for (q=p; *p; ) 13 { 14 if (*p == '#') 15 while (*p && *p != '\n') 16 p++; 17 *q++= *p; 18 if (*p) p++; 19 } 20 *q=0; 21 } 22