Ignore:
Timestamp:
04/20/20 23:27:35 (4 years ago)
Author:
Maciej Komosinski
Message:

Added a few utility/helper functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/util-string.cpp

    r897 r913  
    7777}
    7878
     79bool str_starts_with(const char *str, const char *prefix)
     80{
     81        return strncmp(str,prefix,strlen(prefix))==0;
     82}
     83
    7984char* strmove(char *a, char *b) //strcpy that works well for overlapping strings ("Source and destination overlap")
    8085{
Note: See TracChangeset for help on using the changeset viewer.