Thanks.
I will stick with using C for now. Perl does look like a good option but I'm a little hesitant to try it out as I'd like more experience of C at present - but Perl is definately something...
Type: Posts; User: manny
Thanks.
I will stick with using C for now. Perl does look like a good option but I'm a little hesitant to try it out as I'd like more experience of C at present - but Perl is definately something...
Hmmm, I'm afraid I don't know Perl - and its not for homework.
I guess I'll take a look at expat and take it from there.
Thanks.
Yes, doing it it in C is a requirement (and the only language I know a little about).
Out of curiosity, which language would this be the easiest to do this in?
Hi,
I have a number of xml files which need to be converted into csv files - which would be the best method to do this using C (I have use of an oracle db if need be)?
Ta,
Manny
Can you give more details in your answers please as I do not understand them.
Hi,
I have a variable defined as follows:
char l_string[20]="";
l_string is populated with values which may or may not have an asterix as the last character i.e.
abcd
efghi*
Hi,
Can somebody advise what the best method is to round a float value UP to the nearest whole value:
i.e 1.678 should result in 2.000
i.e 1.012 should also result in 2.000
i.e 1.001 should...
Great.... *-1 does the trick.
ta.
Hello all,
How do I convert a negative float to a positive float?
Cheers,
Manny
If I create a small program and compile/run it with gdb it works fine and I am able to debug ok.
Its only when I use the Makefile that it does not work.
Anybody else got any ideas or suggestions?
I set CFLAGS as below but got an error:
CFLAGS= -Wall -g -c
The error was.......
cc $(CFLAGS) -I/ingres_II/ingres/files -o /home/test_prog.o /home/test_prog.c
cc: illegal option -Wall
Not...
Hi Kermit,
Thanks for that suggestion but that doesn't work either, it returns a warning:
cc: Warning: illegal option -db
Do you think one of the flags in the $LIBS variable is suppressing the...
Hi,
I'd like to run a program in debug using gdb on SunOS 5.6, but I keep getting the following message when i start gdb:
"This GDB was configured as "sparc-sun-solaris2.6"...(no debugging...
Thanks, I'll have a hunt around in the docs.
Hi,
I tried the commands as below, but they do not give the compiler version.
Any other ideas?
Manny
Hi,
Previously I have only used C and the debugger on a VMS platform. Unix is totally new to me. The operating system is SunOS 5.6.
I don't know how to find out which compiler we're using.
...
Hello all,
I am using c on unix but I'm not sure how to kick off a debugger?
I tried compiling as follows:
cc -g test22.c -o test22_deb
and then tried running the exe :
test22_deb
Hi,
Lets say I have a variable char l_string[6 + 1] which gets populated with “123456”.
How can I convert this into a monetory value in a float i.e 1234.56
Using the atof function gives me...
Hello,
Please advise on the best way to extract values of a string so that I can use them to insert into a db - I am thinking of doing it the following way (untested):
String is as follows (but...
Hello all,
Regarding strstr...
If I declare l_start has a pointer to char:
char *l_start
Can I use strstr on the same pointer? i.e.
l_start = strstr(v_string, "*");