> ## Name

> cgGetProfileString - get the profile name associated with a profile enumerant

> ## Synopsis

>     #include <Cg/cg.h>

>     const char * cgGetProfileString( CGprofile profile );

> ## Parameters

> profile
>   The profile enumerant.

> ## Return Values

> Returns the profile string of the enumerant profile.

> Returns NULL if profile is not a valid profile.

> ## Description

> cgGetProfileString returns the profile name associated with a profile enumerant.

> ## Examples

>     static void dumpCgProgramInfo(CGprogram program)
>     {
>       const char* p = cgGetProfileString(cgGetProgramProfile(program));
>       if ( p ) {
>         printf(" Profile: %s\n", p );
>       }
>       /* ... */
>     }

> ## Errors

> None.

> ## History

> cgGetProfileString was introduced in Cg 1.1.

> ## See Also

> cgGetProfile, cgGetProgramProfile