142.
String matching in C
Hello,You comparing the pointers but not the strings.First you are not allocating the memory for src and dst variables which may cause crash.To compare strings this way use strcmp or memcmp functions.char src[100],dst[100];strcpy(src , inet_ntoa(ip->ip_src));strcpy(dst ,...
|
Updated: 10 Dec 2013
Rating: 5.00/5
( (3 votes))
|