allow trim() public function
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
/* Internal helpers — kept private to this translation unit. */
|
||||
static int uselesschar(int c);
|
||||
static void trim(char *s);
|
||||
/* trim is public (declared in lib11sht.h) */
|
||||
static void asciify(const char *src, char *dest, size_t dest_size);
|
||||
static int ulen(unsigned char c);
|
||||
static float shit11(char *s1, char *s2);
|
||||
@@ -162,7 +162,7 @@ static int uselesschar(int c)
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
/* remove leading/trailing whitespace + collapse internal multiple whitespace */
|
||||
static void trim(char *s)
|
||||
void trim(char *s)
|
||||
{
|
||||
int len, i, j, fin = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user