Searched refs:safe_min (Results 1 – 1 of 1) sorted by relevance
/external/libusb/libusb/os/ |
D | windows_common.h | 50 #define safe_min(a, b) MIN((size_t)(a), (size_t)(b)) macro 51 #define safe_strcp(dst, dst_max, src, count) do {memcpy(dst, src, safe_min(count, dst_max)); \ 52 ((char*)dst)[safe_min(count, dst_max)-1] = 0;} while(0) 54 #define safe_strncat(dst, dst_max, src, count) strncat(dst, src, safe_min(count, dst_max - safe_str…
|