Lines Matching refs:err

89     NWC24Err    err;  in main()  local
117 err = NWC24OpenLib(libWorkMem); in main()
118 if ( err != NWC24_OK ) in main()
120 OSReport("NWC24OpenLib(): Error %d\n", err); in main()
140 err = NWC24CloseLib(); in main()
141 if ( err != NWC24_OK ) in main()
143 OSReport("NWC24CloseLib(): Error %d\n", err); in main()
159 NWC24Err err; in GetIdList() local
161 err = NWC24GetNumMsgs(mBoxId, &NumMsgs); in GetIdList()
162 if ( err != NWC24_OK ) in GetIdList()
164 OSReport("NWC24GetNumMsgs(): error %d\n", err); in GetIdList()
184 err = NWC24GetMsgIdList(mBoxId, IdListBuf, NumMsgs); in GetIdList()
185 if ( err != NWC24_OK ) in GetIdList()
187 OSReport("NWC24GetNumMsgList(): error %d\n", err); in GetIdList()
211 NWC24Err err; in ViewMessage() local
214 err = NWC24GetMsgObj(&msgObj, mBoxId, msgId); in ViewMessage()
215 if ( err != NWC24_OK ) in ViewMessage()
217 OSReport("NWC24GetMsgObj(): error %d\n", err); in ViewMessage()
259 NWC24Err err; in ViewFrom() local
262 err = NWC24GetMsgType(msgObj, &type); in ViewFrom()
263 if ( err != NWC24_OK ) in ViewFrom()
265 OSReport("NWC24GetMsgType(): error %d\n", err); in ViewFrom()
278 err = NWC24GetMsgFromId(msgObj, &uid); in ViewFrom()
279 if ( err != NWC24_OK ) in ViewFrom()
281 OSReport("NWC24GetMsgFromId(): error %d\n", err); in ViewFrom()
292 err = NWC24ReadMsgFromAddr(msgObj, addrStr, NWC24MSG_MAX_ADDRSTR); in ViewFrom()
293 if ( err != NWC24_OK ) in ViewFrom()
295 OSReport("NWC24ReadMsgFromAddr(): error %d\n", err); in ViewFrom()
313 NWC24Err err; in ViewTo() local
318 err = NWC24GetMsgType(msgObj, &type); in ViewTo()
319 if ( err != NWC24_OK ) in ViewTo()
321 OSReport("NWC24GetMsgType(): error %d\n", err); in ViewTo()
325 err = NWC24GetMsgNumTo(msgObj, &numTo); in ViewTo()
326 if ( err != NWC24_OK ) in ViewTo()
328 OSReport("NWC24GetMsgNumTo(): error %d\n", err); in ViewTo()
343 err = NWC24ReadMsgToId(msgObj, i, &uid); in ViewTo()
344 if ( err != NWC24_OK ) in ViewTo()
346 OSReport("NWC24ReadMsgToId(): error %d\n", err); in ViewTo()
364 err = NWC24ReadMsgToAddr(msgObj, i, addrStr, NWC24MSG_MAX_ADDRSTR); in ViewTo()
365 if ( err != NWC24_OK ) in ViewTo()
367 OSReport("NWC24ReadMsgToAddr(): error %d\n", err); in ViewTo()
390 NWC24Err err; in ViewSubject() local
395 err = NWC24GetMsgSubjectSize(msgObj, &bufSize); in ViewSubject()
396 if ( err != NWC24_OK ) in ViewSubject()
398 OSReport("NWC24GetMsgSubjectSize(): error %d\n", err); in ViewSubject()
403 err = NWC24ReadMsgSubject(msgObj, buffer, bufSize); in ViewSubject()
404 if ( err != NWC24_OK ) in ViewSubject()
406 OSReport("NWC24ReadMsgSubject(): error %d\n", err); in ViewSubject()
439 NWC24Err err; in ViewDate() local
442 err = NWC24GetMsgDate(msgObj, &cTime); in ViewDate()
443 if ( err != NWC24_OK ) in ViewDate()
445 OSReport("NWC24GetMsgDate(): error %d\n", err); in ViewDate()
460 NWC24Err err; in ViewBodyText() local
467 err = NWC24GetMsgTextSize(msgObj, &bufSize); in ViewBodyText()
468 if ( err != NWC24_OK ) in ViewBodyText()
470 OSReport("NWC24GetMsgTextSize(): error %d\n", err); in ViewBodyText()
475 err = NWC24ReadMsgText(msgObj, buffer, bufSize, &charset, &encoding); in ViewBodyText()
476 if ( err != NWC24_OK ) in ViewBodyText()
478 OSReport("NWC24ReadMsgText(): error %d\n", err); in ViewBodyText()
502 NWC24Err err; in ViewAttachment() local
509 err = NWC24GetMsgNumAttached(msgObj, &numAttach); in ViewAttachment()
510 if ( err != NWC24_OK ) in ViewAttachment()
512 OSReport("NWC24GetMsgNumAttached(): error %d\n", err); in ViewAttachment()
518 err = NWC24GetMsgAttachedSize(msgObj, j, &bufSize); in ViewAttachment()
519 if ( err != NWC24_OK ) in ViewAttachment()
521 OSReport("NWC24GetMsgAttachedSize(): error %d\n", err); in ViewAttachment()
526 err = NWC24ReadMsgAttached(msgObj, j, buffer, bufSize); in ViewAttachment()
527 if ( err != NWC24_OK ) in ViewAttachment()
530 OSReport("NWC24ReadMsgAttached(): error %d\n", err); in ViewAttachment()
535 err = NWC24GetMsgAttachedType(msgObj, j, &fileType); in ViewAttachment()
536 if ( err != NWC24_OK ) in ViewAttachment()
538 OSReport("NWC24GetMsgAttachedType(): error %d\n", err); in ViewAttachment()