Lines Matching refs:ptr
39 FILE *stream, unsigned char *ptr, size_t size, in dump() argument
61 fprintf(stream, "%02x ", ptr[i + c]); in dump()
68 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
69 ptr[i + c + 1] == 0x0A) { in dump()
74 (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.'); in dump()
76 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
77 ptr[i + c + 2] == 0x0A) { in dump()
131 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *stream) in read_callback() argument
138 memcpy(ptr, databuf + current_offset, given); in read_callback()
144 static size_t write_callback(char *ptr, size_t size, size_t nmemb, in write_callback() argument
148 printf("%.*s", amount, (char *)ptr); in write_callback()