linux c之解决array subscript is not integer和AF_NET not undeclared
1、array subscript is not integer 我一开始写的代码是这样的写的 buf[strlen[buf] - 1] = '\0'; 很明显写错了,以后不要再犯这样的错误了,切记 buf[strlen(buf) - 1] = '\0';2、AF_NET not undeclared