Search:

Type: Posts; User: manny

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    6,048

    Thanks. I will stick with using C for now. ...

    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...
  2. Replies
    9
    Views
    6,048

    Hmmm, I'm afraid I don't know Perl - and its not...

    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.
  3. Replies
    9
    Views
    6,048

    Yes, doing it it in C is a requirement (and the...

    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?
  4. Replies
    9
    Views
    6,048

    Converting xml to csv files....

    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
  5. Replies
    5
    Views
    2,455

    Can you give more details in your answers please...

    Can you give more details in your answers please as I do not understand them.
  6. Replies
    5
    Views
    2,455

    Remove last character if asterix?

    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*
  7. Replies
    6
    Views
    4,822

    Rounding float problem.....

    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...
  8. Replies
    4
    Views
    8,832

    Great.... *-1 does the trick. ta.

    Great.... *-1 does the trick.

    ta.
  9. Replies
    4
    Views
    8,832

    convert negative float to positive ???

    Hello all,

    How do I convert a negative float to a positive float?

    Cheers,

    Manny
  10. Replies
    7
    Views
    2,738

    If I create a small program and compile/run it...

    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.
  11. Replies
    7
    Views
    2,738

    Anybody else got any ideas or suggestions?

    Anybody else got any ideas or suggestions?
  12. Replies
    7
    Views
    2,738

    I set CFLAGS as below but got an error: CFLAGS=...

    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...
  13. Replies
    7
    Views
    2,738

    Hi Kermit, Thanks for that suggestion but that...

    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...
  14. Replies
    7
    Views
    2,738

    Problem using gdb debugger.....

    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...
  15. Replies
    9
    Views
    1,672

    Thanks, I'll have a hunt around in the docs.

    Thanks, I'll have a hunt around in the docs.
  16. Replies
    9
    Views
    1,672

    Hi, I tried the commands as below, but they do...

    Hi,

    I tried the commands as below, but they do not give the compiler version.

    Any other ideas?

    Manny
  17. Replies
    9
    Views
    1,672

    Hi, Previously I have only used C and the...

    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.
    ...
  18. Replies
    9
    Views
    1,672

    How do i use the debugger in unix?

    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
  19. Replies
    3
    Views
    1,099

    string to float (monetory value)....

    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...
  20. Replies
    2
    Views
    1,469

    please advise....

    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...
  21. Replies
    6
    Views
    5,713

    strstr and strtok questions.....

    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, "*");
Results 1 to 21 of 21