[FreeVMS] Re: Null Termination & Optional Arguments


Subject: [FreeVMS] Re: Null Termination & Optional Arguments
From: Roar Thronæs (roart@nvg.ntnu.no)
Date: Sun Dec 28 2003 - 12:14:50 CET


On Sat, Dec 27, 2003 at 06:29:10PM -0500, Andrew Allison wrote:
>
> Now, to spice things up somewhat with null terminated strings.
>
> I've combine the descriptor / counted string VMS concept with the Null
> terminated string concept.

How do you do that? You mean by things in A and B?

> I'm presuming that a little re-writing will be required when FreeVMS
> progresses a little further.

What kind of rewrite?

> A: Since we are writing in C under Linux, strings are null terminated and
> I haven't written / or seen a printf scanf routine that handles string
> descriptors.

Printf and scanf doesn't use descriptors in VMS either.

Eventually, lib$get_output and lib$put_output will be used; both routines
can probably be implemented by using read and write on stdin and stdout.
In VMS both use RMS $get and $put, but FreeVMS as of now does not
have VMS terminal drivers or support process logicals (sys$output).

> B: I been a little concerned about the use of the linux C string function
> calls since they all expect null termination, but I hope when we write the C
> compiler these little problems will go away :-)

Doesn't C on VMS expect null termination, too?
I hope you don't expect us to write a C compiler?
(I am not quite sure how to interpret that smiley)

Regards,
Roar Thronæs

-- 
Liste de diffusion FreeVMS
Pour se désinscrire : mailto:freevms-request@ml.free.fr?subject=unsubscribe



This archive was generated by hypermail 2b25 : Sun Dec 28 2003 - 12:15:33 CET