Intermec 5055 Reference Guide

Page of 216
IM_ISERROR
5-43
5
IM_ISERROR
Purpose:
This macro determines if the return status code from another PSK function is an error
(either fatal or nonfatal).
Syntax:
#include "im5055.h"
IM_ISERROR(
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
Success.
Nonzero
Error (either fatal or nonfatal).
See Also:
IM_ISGOOD, IM_ISSUCCESS, IM_ISWARN
Example
/********************* IM_ISERROR ************************************/
#include "im5055.h"
printf("IM_ISERROR Example")
status = im_sound(IM_LOW_PITCH, IM_BEEP_DURATION, IM_NORMAL_VOLUME)
if IM_ISERROR(status)
   printf("Beep error!");
else
   im_cputs("Beep success or warning!", IM_NORMAL);