Lines Matching refs:srclen
82 static int convert_data(int type, char *dst, const char *src, int srclen) in convert_data() argument
90 while (--srclen >= 0) { in convert_data()
116 while (--srclen >= 0) { in convert_data()
138 *(int *)dst = srclen; in convert_data()
140 memcpy(dst, src, srclen); in convert_data()
142 dstlen = sizeof(int)+srclen; in convert_data()
149 static int convert_scrap(int type, char *dst, char *src, int srclen) in convert_scrap() argument
157 if (srclen == 0) in convert_scrap()
158 srclen = strlen(src); in convert_scrap()
160 while (--srclen >= 0) { in convert_scrap()
180 while (--srclen >= 0) { in convert_scrap()
196 srclen ? srclen - sizeof(int) : dstlen); in convert_scrap()
266 void put_scrap(int type, int srclen, const char *src) in put_scrap() argument
273 dstlen = convert_data(type, NULL, src, srclen); in put_scrap()
280 convert_data(type, dst, src, srclen); in put_scrap()
298 convert_data(type, dst, src, srclen); in put_scrap()
318 convert_data(type, dst+4, src, srclen); in put_scrap()