Amiga-C (184/223)

From:Murray Henderson
Date:25 Aug 2001 at 18:34:59
Subject:Re: [amiga-c] Help with some SAS/C code

At 11:29 PM 8/25/01 +1000, you wrote:
>Am trying to compile irapost.c from the archive ira105_src.lha sourced
>from aminet. Originally written for sas/c, I get undefined references
>when linking (using gcc -noixemul) for the following -
>
>chkabort
>onbreak
>stch_l

Most often the functions for chkabort and onbreak are defined as null
functions in the source code of your program to stop them from being
referenced and linked from the SAS/C standard libraries. The effect is that
the program will have no automatic CTRL-C checking. So, leaving them out of
your code in gcc could end up re-enabling it. You might want to see what
gcc does for this.

As for stch_l, the reference manual for SAS/C says it converts a
hexadecimal string to a long integer. Here's the synopsis:

lenght = stch_l( in, lvalue);

int length; /* input length */
const char *in; /* input string pointer */
long *lvalue; /* long integer value pointer */

I hope this helps you.

Murray Henderson - Kitchener, Ontario, Canada

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure all your Web servers now: Get your FREE Guide and learn to: DEPLOY THE LATEST ENCRYPTION,
DELIVER TRANSPARENT PROTECTION, and More!
http://us.click.yahoo.com/VihfLB/nT7CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/