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-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2022-08-29 19:55:48 +02:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-07-01 08:04:00 +02:00
2022-08-28 22:09:44 +02:00
2022-08-29 20:52:35 +02:00
2025-07-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-07-01 08:04:00 +02:00
2025-03-24 20:52:55 +01:00
2022-04-17 16:06:22 +02:00
2025-07-01 08:04:00 +02:00
2025-07-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2020-04-02 22:58:16 +02:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-06-04 06:37:59 +00:00
2025-05-13 21:26:47 +02:00
2025-05-13 21:26:47 +02:00
2025-06-22 21:34:41 +00:00
2025-06-22 21:34:41 +00:00
2025-03-24 20:52:55 +01:00
2022-04-17 16:06:22 +02:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-01-01 14:32:07 +01:00
2022-08-28 22:37:33 +02:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-07-01 08:04:00 +02:00
2025-07-01 08:04:00 +02:00
2025-07-01 08:04:00 +02:00
2024-12-09 18:37:02 +01:00
2025-07-01 08:29:42 +02:00
2025-07-01 08:04:00 +02:00
2025-07-05 12:11:40 +02:00
2014-06-30 16:51:07 -04:00
2013-05-09 13:57:12 +02:00
2025-06-17 21:40:04 +02:00
2024-09-12 09:14:57 +02:00
2025-06-22 21:34:41 +00:00
2025-06-04 06:37:59 +00:00
2025-06-04 06:37:59 +00:00
2025-06-22 21:34:41 +00:00
2025-06-04 06:37:59 +00:00
2025-03-24 20:52:55 +01:00
2025-06-04 06:37:59 +00:00
2015-10-14 22:52:09 +02:00
2025-05-13 21:26:47 +02:00