[Info-vax] strtok_r on Compaq C V6.4-005 on OpenVMS VAX V7.3

Craig A. Berry craigberry at mac.com.invalid
Wed Oct 24 16:58:58 EDT 2012


In article <50846e61$0$31255$c3e8da3$3a1a2348 at news.astraweb.com>,
 JF Mezei <jfmezei.spamnot at vaxination.ca> wrote:

> Stuart Martin wrote:
> 
> > thanks guys. I lifted the freebsd impl for a local copy.
> 
> VMS was lateimplementing these standard function. I remember having to
> write my own strdup. And when I upgraded, found the compiler would
> complain about multiple definitions of strdup.
> 
> So just be aware that when you upgrade the compiler, you'll have to
> update your own .h files to remove the strdup definition. (and strtok
> and any other that you write because they are missing)

Not if you use prefixing correctly so that your home-grown ones don't 
conflict with vendor-supplied versions that come along later.  See the 
/PREFIX command-line qualifier to the C compiler and/or the #pragma 
prefix directive.



More information about the Info-vax mailing list