Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!hpfcso!hpldola!hp-lsd!oldcolo!dave From: dave@oldcolo.UUCP (Dave Hughes) Newsgroups: comp.unix.xenix Subject: 'Rename' Library Function? Keywords: rename lib Message-ID: <[157]unix@oldcolo.UUCP> Date: 14 Sep 89 12:10:03 GMT Lines: 17 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@oldcolo.uuup