Space/Null padding a structure in C

From: Michael Stowe <Michael.Stowe_at_f573.n115.z1.nwugate.fidonet.org>
Date: Fri, 23 Sep 94 00:37:55 -0500
Message-ID: <780284275_at_f573.n115.z1.ftn>


  • Quoting Geoff Bray to All dated 09-21-94 ***
    > I am working with a couple of relational databases using C and embedded
    > SQL.
    > The C interface assumes that strings (character arrays) will be space
    > padded to the length of the array. My question is how can I set up a C
    > function that will automatically space (or null) pad a structure
    > dynamically. In the past we have created libraries that have a typedef
    > and we have another structure that points to the offsets in the original
    > structure so that a function can go through the structure and pad all
    > of the arrays. Is it at all possible to do this dynamically?

This is a C question and has very little to do with Oracle, but yes, of course it is possible to do this dynamically using C. All you need is the expected length of the C string as you would pass it to Oracle... Received on Fri Sep 23 1994 - 07:37:55 CEST

Original text of this message