Thread: converting borland c

  1. #1
    Registered User
    Join Date
    Oct 2002

    Question converting borland c

    i have recently discovered that an old C program i wrote in college years ago, can be used as a keyword search facility for web pages.

    The program was a text file analyser (find word, most common word, index of all words etc).
    Its quite an efficient program, ive discovered i can port it to cgi (C) and capture input via a form and display onto a web page.
    The bad news is, it was written and compiled under Borland, and i can get it to run under UNIX - which i have to do first.
    i am aware of header file incompatabilities 'conio.h' and 'alloc.h', but im also having pointer (casting) problems. Im currently getting 14 error messages.

    can anybody offer any help?

    Many thanks

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    Yet another reason that borland is a poor compiler. Anyways, you may not have to change too much depending on how many conio functions you had used. Nonetheless, you may even find some sort of wrapper for these dos header files. I don't know if one exists but everyonce in a while wishful thinking turns out to be a solution.

  3. #3
    Registered User
    Join Date
    Oct 2002

    Cool converting borland c to unix

    As far as i can gather (in other words may be wrong)...
    my getch() function will work if i include 'curses.h'

    But will 'stdlib.h' catch my malloc functions?

    hmmm... much chin scratching indeed.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    getch() is not ANSI standard, but it is included in most conio.h files, and with some curses libraries.

    malloc() is ANSI, and is defined in stdlib.h

    Any more?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tips for converting C prog. to C++?
    By eccles in forum C++ Programming
    Replies: 7
    Last Post: 01-15-2005, 07:38 AM
  2. Converting Sign Magnitude Integer Binary Files
    By Arthur Dent in forum C Programming
    Replies: 7
    Last Post: 09-13-2004, 10:07 AM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. Converting from infix to postfix
    By jcramer in forum C Programming
    Replies: 4
    Last Post: 03-27-2004, 09:23 PM
  5. converting string to float
    By twhubs in forum C Programming
    Replies: 1
    Last Post: 09-16-2001, 09:02 AM