2026-01-10 19:57:36 +01:00
|
|
|
#include "string_utils.h"
|
|
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
#include <stddef.h>
|
2026-01-08 17:03:52 +01:00
|
|
|
|
2026-01-12 17:41:24 +00:00
|
|
|
char *trim_blank_left(char *str)
|
2026-01-08 17:03:52 +01:00
|
|
|
{
|
2026-01-12 17:41:24 +00:00
|
|
|
if (str == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
while (*str != '\0' && isblank(*str))
|
|
|
|
|
str++;
|
|
|
|
|
|
|
|
|
|
return str;
|
2026-01-08 17:03:52 +01:00
|
|
|
}
|