New api to help with kernel command line parsing.
free (array);
}
+bool
+ply_string_has_prefix (const char *string,
+ const char *prefix)
+{
+ if (string == NULL)
+ return false;
+
+ if (prefix == NULL)
+ return false;
+
+ if (strlen (prefix) > strlen (string))
+ return false;
+
+ return strncmp (string, prefix, strlen (prefix)) == 0;
+}
+
static int
ply_get_max_open_fds (void)
{
bool ply_fd_may_block (int fd);
char **ply_copy_string_array (const char * const *array);
void ply_free_string_array (char **array);
+bool ply_string_has_prefix (const char *string,
+ const char *prefix);
void ply_close_all_fds (void);
double ply_get_timestamp (void);