[FreeVMS] Run time routines - Descriptors and Memory allocation


Subject: [FreeVMS] Run time routines - Descriptors and Memory allocation
From: Andrew Allison (freevms@sympatico.ca)
Date: Tue Oct 07 2003 - 20:11:39 CEST


Hello:

    Just to confirm that I'm not wacked, a few VMS/FreeVMS issues that apply
to all string routines.

Current issues: Null strings, String types and memory allocation.

I'm a little rusty on my descriptors - memory allocation verses string
truncation?

Dynamic strings
If dsc$b_class == DSC$K_CLASS_D then

        a) If the destination string descriptor is not NULL, Free any
memory that is passed into the routine
        b) Allocate sufficient memory for the results

Fixed length strings
If dsc$b_class == DSC$K_CLASS_S then

        a) If the destination string descriptor is NULL Abort
        b) Else return as many bytes as there is room. and set truncation
flag.

Just a little reality check.

Andrew

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



This archive was generated by hypermail 2b25 : Tue Oct 07 2003 - 20:13:06 CEST