我的程序有以下警告,因为我认为出现了核心转储分段错误:
rc = getaddrinfo(svrHost, svrPort, &hints, &res);:12: note: expected ‘const char * restrict’ but argument is of type ‘short unsi
我在getaddrinfo()中遇到分段错误。Program received signal SIGSEGV, Segmentation fault./sysdeps/posix/getaddrinfo.c:690
#4 0x003faa65 in *__GI_getaddrinfo (name=0x8203a68 "api.shoutcast.com/sysdeps/posix/getaddrinfo.c:2160