Mailinglist Archive: opensuse-programming (51 mails)

< Previous Next >
Re: [suse-programming-e] Converting an old program
  • From: Carl William Spitzer IV <cwsiv@xxxxxxxxxxxxx>
  • Date: Sun, 06 Aug 2006 10:25:14 -0700
  • Message-id: <1154885115.5846.7.camel@xxxxxxxxxx>
On Sun, 2006-08-06 at 09:29 +0200, Per Jessen wrote:
> Carl William Spitzer IV wrote:
>
> > I have an old dos program of mine which I want to convert to linux.
> > Its in Borland C. It creates a unique name based on the systems
> > current date and time not an offset from 1970 but the current MMDDYY
> > HHMMSS.
> >
> > I beleive tis best left as C but some of the routines I remember being
> > Borland specific would need to be rewritten. This is a first effort
> > for me in Unix and I would like help from the list as I can not afford
> > books at this time.
>
> There isn't a lot to it, Carl -
>
> you can start off with just trying to compile it:
>
> gcc -Wall <sourcefile> -o <binary>
>
> it won't compile as you have some includes that don't exist on a typical
> linux system: dos.h, dir.h, process.h, alloc.h.
>
> Next you'll have to look at uniquename() and fix you retrieve time and
> date - check time.h for some clues.
> fnsplit() and fnmerge() don't exist either, so you'll have to find
> equivalents or write them yourself.

That is why I asked I do not have any unix programming books to study.
the file name split and merge routines should be simple string routines
but the includes I can not begin to guess at.

Recommendations online??

CWSIV




< Previous Next >
List Navigation
Follow Ups