| 9 | #include "date.h" |
| 10 | |
| 11 | bool starts_with(const char *str, const char *prefix) |
| 12 | { |
| 13 | for (; ; str++, prefix++) |
| 14 | if (!*prefix) |
| 15 | return true; |
| 16 | else if (*str != *prefix) |
| 17 | return false; |
| 18 | } |
| 19 | |
| 20 | bool istarts_with(const char *str, const char *prefix) |
| 21 | { |
no outgoing calls