摘要:
#include <stdio.h>#include <string.h>int main(){ char str[] = "abcde"; char temp[] = ""; int i, j; for(i = 0; i<5; i++) { temp[i] = str [4-i]; } strcpy(str, temp); printf("%s\n",str);}结果: # gcc test_point.c -o test_point # ./test_point str:edcba 阅读全文
摘要:
#include <stdio.h>#include <string.h>#define NTP_TIME "/etc/ambaipcam/IPC_Q313/config/NTPaddr.txt"int main(){ FILE *NTPfp ; char szNTP[50][255],ntpjudge[100]; char addr[255],addrbuf[255]; char NTPaddress[255]; //-------------要改的NTP地址 strcpy(NTPadd... 阅读全文