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. /Per Jessen, Zürich