Intermec 5055 Reference Guide

Page of 216
IM_ISGOOD
5-44
IM_ISGOOD
Purpose:
This macro determines if the return status code from another PSK function is a success.
For more information, see “Status Code Macros” in Chapter 2.
Syntax:
#include "im5055.h"
IM_ISGOOD(
status
);
IN Parameters:
status    Any PSK function that returns a status code.
OUT Parameters:
None.
Return Value:
This function returns one of these codes:
0
Warning or error.
Nonzero
Success.
See Also:
IM_ISERROR, IM_ISSUCCESS, IM_ISWARN
Example
/********************* IM_ISGOOD ************************************/
#include "im5055.h"
printf("IM_ISGOOD Example")
status = im_sound(IM_LOW_PITCH, IM_BEEP_DURATION, IM_NORMAL_VOLUME)
if IM_ISGOOD(status)
   printf(“Beep Successful!”);
else
   im_cputs(“Beep warning or error!”, IM_NORMAL);