Lines Matching defs:cp
296 print_unknown_data(netdissect_options *ndo, const u_char *cp,const char *ident,int len)
303 if (ndo->ndo_snapend - cp < len)
304 len = ndo->ndo_snapend - cp;
310 hex_print(ndo, ident,cp,len);
821 register char *cp;
831 cp = malloc((u_int)buf.st_size + 1);
832 if (cp == NULL)
835 cc = read(fd, cp, (u_int)buf.st_size);
844 if (cp[i] == '#')
845 while (i < cc && cp[i] != '\n')
846 cp[i++] = ' ';
848 cp[cc] = '\0';
849 return (cp);