2000-10-16から1日間の記事一覧
int strlen(char *s) /* return length of string s */ { char *p = s; while(*p != '\0') p++; return p - s; }#include int main(void) { char *sptr, array[ ] = "hello,world123"; sptr = "hello,world"; printf("in array : %s\n", array); printf("by …