Colin Leroy-Mira
6604c5ce92
Make strndup smaller, safer, faster
First implementation was doing:
- strdup (without checking result!)
- strlen
- terminate
- realloc
New one does:
- malloc to shortest +1
- strncpy
- terminate
2025-07-05 12:11:40 +02:00
..
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-06-04 06:37:59 +00:00
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-06-30 18:39:33 +02:00
2025-07-04 17:03:47 +02:00
2025-07-04 17:03:47 +02:00
2025-07-04 17:04:12 +02:00
2025-07-04 17:03:47 +02:00
2025-07-04 17:03:47 +02:00
2025-07-04 17:03:47 +02:00
2025-07-05 12:11:40 +02:00
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-07-04 11:20:35 +02:00
2025-06-22 21:34:41 +00:00
2022-07-21 03:20:44 +02:00
2025-07-04 11:20:35 +02:00
2022-07-21 03:20:44 +02:00
2025-03-02 09:26:31 +01:00
2025-07-04 11:20:35 +02:00
2023-02-26 20:03:41 +01:00
2025-06-04 06:37:59 +00:00
2025-06-26 01:21:28 +02:00
2025-07-04 17:03:47 +02:00
2023-02-26 20:03:41 +01:00
2025-07-04 11:20:35 +02:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-07-04 11:20:35 +02:00
2025-07-04 17:03:47 +02:00
2025-07-04 17:03:47 +02:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2023-09-12 20:58:21 +02:00
2025-07-01 08:29:42 +02:00
2025-06-22 21:34:41 +00:00
2025-06-04 06:37:59 +00:00
2025-07-04 11:20:35 +02:00
2025-07-01 08:04:00 +02:00
2025-07-04 17:03:47 +02:00
2025-06-04 06:37:59 +00:00
2025-06-27 16:43:13 +02:00
2024-07-18 10:00:16 +02:00