3
#include <orbit/orbit.h>
6
CORBA_string_alloc (CORBA_unsigned_long len)
8
return ORBit_alloc_string (len + 1);
12
CORBA_string_dup (const CORBA_char *str)
15
CORBA_unsigned_long len;
20
len = strlen (str) + 1;
22
retval = ORBit_alloc_string (len);
23
memcpy (retval, str, len);
29
CORBA_wstring_alloc (CORBA_unsigned_long len)
31
return ORBit_alloc_simple ((len + 1) * 2);
35
CORBA_wstring_len (CORBA_wchar *ws)
39
for (i = 0; ws [i]; i++)