TipcSubjectValid


Name

TipcSubjectValid — check if a subject name is a valid subject

Synopsis

T_BOOL TipcSubjectValid(subject) 
T_STR subject; 

Arguments

subject — the subject name to validate

Return Values

TRUE if the subject name is a valid subject, FALSE otherwise.

Diagnostics

None

Description

TipcSubjectValid checks that a subject name is a valid subject. Invalid subject names are either NULL or contain nothing but white space and subject delimiters (for example, '/').

Caution

None

See Also

TipcSubjectMatch, TipcSubjectGetUnique

Examples

This example checks if a subject name is valid:

T_STR subject = "/stocks/t*"; 
 
/* 
 * This will result in a valid subject name. 
 */ 
if (!TipcSubjectValid(subject)) { 
    /* invalid subject */ 
} 
 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com