Intermec 5055 Reference Guide

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