add utility function replace_multiple_space_with_one()

use it to parse the interactive input
This commit is contained in:
2024-06-27 19:18:28 +01:00
parent 2dda32ead9
commit 1d71f38d39
3 changed files with 54 additions and 4 deletions

6
include/util.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef __UTIL_H__
#define __UTIL_H__
void replace_multiple_space_with_one(char *s);
#endif /* __UTIL_H__ */