Skip to content

Commit e1ccf7d

Browse files
committed
Make a marco that fills the old function
1 parent 7c6e961 commit e1ccf7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ int laco_is_match(const char** matches, const char* test_string);
4444
*/
4545
char** laco_split_by(const char* split_with, char* string);
4646

47+
/* Macro for splitting with spaces */
48+
#define laco_line_to_words(line) \
49+
laco_split_by(" ", line)
50+
4751
#endif /* LACO_UTIL_H */

0 commit comments

Comments
 (0)