Discussion:
String functions in uccs/ucplus v. 7
(too old to reply)
Stefan
2003-09-29 11:06:32 UTC
Permalink
Does SCO UDK C (uccs/ucplus v. 7), installed on OpenServer 5.0.5,
support 'string' functions like strcat, strdup, strcmp, etc.

I tried 'strcpy' and it was rejected.

Man pages, udkman (and man), have no references in regard to mentioned
set of 'string' functions.

Thanks in advance.
Larry Rosenman
2003-09-29 21:58:25 UTC
Permalink
Post by Stefan
Does SCO UDK C (uccs/ucplus v. 7), installed on OpenServer 5.0.5,
support 'string' functions like strcat, strdup, strcmp, etc.
I tried 'strcpy' and it was rejected.
Man pages, udkman (and man), have no references in regard to mentioned
set of 'string' functions.
Yes it does. What header(s) did you include?
Are you picking up the UDK compiler?

#include <string.h>

it's in the 3C section of the manual.

LER
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ***@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Stefan
2003-10-01 14:17:11 UTC
Permalink
Post by Larry Rosenman
Post by Stefan
Does SCO UDK C (uccs/ucplus v. 7), installed on OpenServer 5.0.5,
support 'string' functions like strcat, strdup, strcmp, etc.
I tried 'strcpy' and it was rejected.
Man pages, udkman (and man), have no references in regard to mentioned
set of 'string' functions.
Yes it does. What header(s) did you include?
Are you picking up the UDK compiler?
#include <string.h>
it's in the 3C section of the manual.
LER
Larry,

I had to properly configure my path
(number of different, some 'experimental', compilers were there)
and afterwards 'string' functions started to work.

In regard to documentation, there is a problem (I think).
Following your remark about 3C section,
I randomly picked up some of those functions from online manual
(UnixWare 7 Documentation) and found e.g.
udkman documentation for malloc, rand, swap, tsearch,
but not for memcmp, memcpy, tdelete, twalk, neither for any of
fourteen 'string' functions.

It is a little mystery for me now.

By the way, I wanted all documentation,
including UDKdoc, on my OpenServer 5.0.5 locally.
On another forum I was advised that UDKdoc is not available
for this SCO flavor, instead there is online version.
Problem is, particularly in regard to ongoing blockade
Caldera/SCO sites, people have no access to the web resources
all the time.

Is there any 'tricky' way to install UDKdoc locally other than, perhaps,
'adjusting' installation scripts (to avoid legal problems).

In any case thank you for your response.
J. L. Schilling
2003-10-01 13:40:06 UTC
Permalink
Post by Stefan
Does SCO UDK C (uccs/ucplus v. 7), installed on OpenServer 5.0.5,
support 'string' functions like strcat, strdup, strcmp, etc.
I tried 'strcpy' and it was rejected.
Man pages, udkman (and man), have no references in regard to mentioned
set of 'string' functions.
Yes, the UDK definitely supports the entire C standard library.

Try this:

151$ cat test.c
#include <string.h>

void foo(char* a, char* b) {
strcpy(a, b);
}
152$ /udk/usr/ccs/bin/cc -c -H test.c
/udk/usr/include/string.h

What do you get on your system? Do you have a /udk/usr/include/string.h?

Jonathan Schilling
Stefan
2003-10-06 13:27:17 UTC
Permalink
Post by J. L. Schilling
Post by Stefan
Does SCO UDK C (uccs/ucplus v. 7), installed on OpenServer 5.0.5,
support 'string' functions like strcat, strdup, strcmp, etc.
I tried 'strcpy' and it was rejected.
Man pages, udkman (and man), have no references in regard to mentioned
set of 'string' functions.
Yes, the UDK definitely supports the entire C standard library.
151$ cat test.c
#include <string.h>
void foo(char* a, char* b) {
strcpy(a, b);
}
152$ /udk/usr/ccs/bin/cc -c -H test.c
/udk/usr/include/string.h
What do you get on your system? Do you have a /udk/usr/include/string.h?
Jonathan Schilling
Jonathan,

Sorry for delay in getting back to you.

Problem was of an administrative nature, as reported.

Thank you for your assistance, both here and in debugger issue.

Loading...