
Yet another small problem
Quote:
> Im currently trying to port a Cobol toolkit to HP-UX 9.04.
> I have some serious problems with the input procedure.
> So it seems to me that the source that is needed for our input routine can
> be written in C with al least half as much troubles.
Hi D.O.A. van Doorn,
Interactive user input is one of the weaker points of the standard
C language, depending on the level of comfort that you want to offer.
Quote:
> I need a program (which i'll link as an object) which does nomore than :
> * Given from the main program the max-length of the input variable
> (integer 4 positions)
success = fgets( buffer, MAX_LENGTH, stdin );
Quote:
> * And returning to the main program the real length and the input
> variable (character/string 256 posit
strlen( buffer );
Quote:
> If somebody is going to spend the few minutes to write this little program
> for me, please consider that it must be clean C for HP-UX 9.04
> If that works the last problem according to my toolkit is gone.
I really do not think it is a good idea to attempt to program in C,
if you do not know how to program in C.
Stephan
(initiator of the campaign against grumpiness in c.l.c)