Yet another small problem 
Author Message
 Yet another small problem

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.

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)
       * And returning to the main program  the real length and the input
variable (character/string 256 posit

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.

Thank you !

Daniel O.A. van Doorn



Sat, 02 Jun 2001 03:00:00 GMT  
 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)



Sun, 03 Jun 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Yet-another-realloc problem

2. Yet Another Time Problem

3. Yet another newbie problem.

4. Yet another var-arg problem...

5. Yet another SAFEARRAY problem...

6. vc++ 5.0 debugger problems, any solutions yet?

7. easy yet frustrating variable order problem

8. Yet another problem with virtual functions

9. yamp (yet another malloc problem)

10. Yet another CString to char* problem

11. Yet another release/debug problem

12. Yet another pointer problem...

 

 
Powered by phpBB® Forum Software