Carbon


NSLGetServiceFromURL

Header: NSL.h Carbon status: Supported

Obtains the service portion of a URL.

OSStatus NSLGetServiceFromURL (
    char *theURL, 
    char **svcString, 
    UInt16 *svcLen
);
Parameter descriptions
theURL

On input, a pointer to a null-terminated string containing a URL.

svcString

On input, a pointer to the address of a string in memory. On output, svcString points to the service portion of the URL specified by theURL.

svcLen

On input, a pointer to an unsigned 16-bit value. On output, svcLen contains the length in bytes of svcString.

function result

A result code. A value of noErr indicates that NSLGetServiceFromURL successfully obtained the service portion of the specified URL.

DISCUSSION

The NSLGetServiceFromURL function obtains the service portion of a URL.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)