Sun Java System Web Server 7.0 Update 5 NSAPI Developer's Guide

util_is_url() Function

The util_is_url function checks whether a string is a URL, returns 1 if the string is a URL and 0 otherwise. The string is a URL if it begins with alphabetic characters followed by a colon (:).

Syntax

int util_is_url(char *url);

Return Values

1 if the string specified by url is a URL, or 0 if the string specified by url is not a URL.

Parameters

char *url is the string to be examined.

See Also

util_is_mozilla() Function, util_later_than() Function