#include "lib.h"
#include "list.h"
Go to the source code of this file.
◆ DefList() [1/2]
◆ DefList() [2/2]
Split a string by a separator.
This is very useful for parsing command line arguments.
- Parameters
-
| str | the string to split |
| sep | the separator in he string |
- Returns
- a List of Str where each Str was separated by sep in str
◆ ListSafeStr_deserialize()
| ListSafeStr ListSafeStr_deserialize |
( |
Buffer | buf | ) |
|
Deserialize a SafeStr from a Buffer.
WARNING: Do NOT deinitialize this using ListSafeStr_deinit. You must manually deinitialize the strings inside the list and then the whole list.
- Parameters
-
| buf | a Buffer containing the Safe |
- Returns
- a List of SafeStr
◆ ListStr_print()
| void ListStr_print |
( |
ListStr | list | ) |
|
Print a List of Strings.
- Parameters
-
◆ sep