'Rename' Library Function?

Dave Hughes dave at oldcolo.UUCP
Thu Sep 14 22:10:03 AEST 1989


WHen I try to compile an indexing program written on a Mac (AIX I think)
system, which has a 'rename' library function, it bombs on that function,
returning an 'unresolved external' error on _rename.

It is used - and needed - in the following type of use:

    char oldname[32], finalname[65];                                   
    sprintf (oldname, "x%dk0", generation_number);                     
    sprintf (finalname, "%s.k", doc_filename);                         
    if (rename (oldname, finalname))                                   
        printf ("Sorry -- error in renaming file %s to %s!\n", oldname,
                finalname);                                            

I cannot find another 386 Xenix compiler library function which will
work in its place. Any suggestions?

dave at oldcolo.uuup



More information about the Comp.unix.xenix mailing list