Purpose
Get the name of the program that was used
when creating this program.
Syntax
unsigned int CWB_ENTRY cwbRC_GetPgmName(
cwbRC_PgmHandle program,
char *programName);
Parameters
- cwbRC_PgmHandle program - input
- Handle that was returned by a previous call to the cwbRC_CreatePgm API.
It identifies the program object.
- char * programName - output
- Pointer to a ten character buffer where the name of the program will be
written.
Return Codes
The following list shows common return
values.
- CWB_OK
- Successful completion.
- CWB_INVALID_POINTER
- Bad or NULL pointer.
- CWBRC_INVALID_PROGRAM
- Invalid program handle.
- CWB_NOT_ENOUGH_MEMORY
- Insufficient memory; may have failed to allocate the temporary buffer.
- CWB_API_ERROR
- General API failure.