Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stddef.h> /* for size_t */
- //used size_t to ensure portability to other distros
- size_t get_command_length(const char **string) {
- size_t i;
- for (i = 0; string[i] != '\0'; i++) ;
- return i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement