src/semver.c
/* Remove everything at and after "+" in a pre-release suffix */
Remove everything at and after "+" in a pre-release suffix
Remove everything at and after " + " in a pre - release suffix
char* strip_meta(const char *str)
{
    int n = strlen(str);
    char *copy = palloc(n + 1);
    int j = 0;   
    strcpy(copy, str);
    while (j < n)
    {
        if (str[j] == '+') {
            break;
        } else {
            copy[j] = str[j];
            j++;
        }
    }
    copy[j] = '\0';
    return copy;
}
char * strip_meta ( const char * str ) { int n = strlen ( str ) ; char * copy = palloc ( n + 1 ) ; int j = 0 ; strcpy ( copy , str ) ; while ( j < n ) { if ( str [ j ] == ' ' ) { break ; } else { copy [ j ] = str [ j ] ; j ++ ; } } copy [ j ] = ' \0 ' ; return copy ; }
Remove everything at and after "+" in a pre-release suffix
Remove everything at and after " + " in a pre - release suffix
// current character /* if current character is b */