Need some help with unknown function!

This is a discussion on Need some help with unknown function! within the C Programming forums, part of the General Programming Boards category; Hello all, I am reviewing a .c program that runs as a batch process for Oracle. I am not quite ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    2

    Need some help with unknown function!

    Hello all,

    I am reviewing a .c program that runs as a batch process for Oracle. I am not quite sure how to interpret the following line of code:

    input(in_term," Term :",6,ALPHA);

    or

    input(one_up_no,"Enter Parameter Sequence Number: ",26,NUM
    Questions:

    1. Where do I find information on input()? Is this a built in function, I have tried to create a test.c program to see how it works and I get a compiler error, unknow.

    --> I can figure it is displaying a prompt and receiving user input, but what is ALPHA and NUM? and why can't I use input in a separate program.

    Thank you for any help in advance

  2. #2
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    it will be a function in some library your program is using.
    NUM and ALPHA (if I were to write this) would be integer constants, NUM meaning "numeric" and ALPHA meaning "alphanumeric".

    The second parameter could be the number of positions that the input is allowed to be, though a 26 long numeric field seems excessive.

    If you figure out what library the function is in and what preconditions there are to using it you should be able to use it.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    2

    ...

    Yeah that's the thing, I couldn't find the library that its in,

    I finally found the library file, thanks for ure help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Brand new to C need favor
    By dontknowc in forum C Programming
    Replies: 5
    Last Post: 09-21-2007, 10:08 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 05:45 AM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21