Next: , Previous: Utility Functions, Up: Utility Functions


A.4.1 bpipe_check_field_name

Check that a field name is legal.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
int bpipe_check_field_name(const char *name);

Parameters

const char *name
the name to check

Description

Field names must start with a character from the alphabet or an underscore and can contain only alphanumeric and underline characters. Field names beginning with an underscore are reserved for use by bpipe.

Returns

It returns zero if the name is legal, non-zero if it isn't