Search:

Type: Posts; User: lonbgeach

Search: Search took 0.01 seconds.

  1. Replies
    31
    Views
    7,646

    I got more precisions regarding the special...

    I got more precisions regarding the special characters :


    <Cle.controle.TOP.2>b&#229;</Cle.controle.TOP.2> ...
  2. Replies
    31
    Views
    7,646

    ok, i got it, i removed the wrong line. hehe ...

    ok, i got it, i removed the wrong line. hehe

    Please help me regarding the error codes.
    Thanks
  3. Replies
    31
    Views
    7,646

    I am not going to call it in C, but it will be...

    I am not going to call it in C, but it will be part of a chain of batches.
    That is why I need to dal with return error codes.
    How do you do that in Perl ?

    Also, one requirement is to delete all...
  4. Replies
    31
    Views
    7,646

    coder8137 : thanks very very much ! I am using...

    coder8137 :
    thanks very very much ! I am using your solution and learning perl in the same occasion !
    That is great, it works.
    I modified it so that it allows tags with dots in the names like

    ...
  5. Replies
    31
    Views
    7,646

    The tag do not have attributes, there is no CDATA...

    The tag do not have attributes, there is no CDATA so it's all good.
    The idea is good but the following code does not work with Ksh.


    <bla> body </bla>
    also we can have an empty tag, like this...
  6. Replies
    31
    Views
    7,646

    coder8137 : thanks for the effort ! I will try...

    coder8137 : thanks for the effort !
    I will try to use that code.
    Do you have any suggestion on how to use it to check every line ? I mean, I need to put that code inside a loop.
    Thanks for your...
  7. Replies
    31
    Views
    7,646

    oops, I meant MB of course :)

    oops, I meant MB of course :)
  8. Replies
    31
    Views
    7,646

    Well, this is what I have done so far : I have...

    Well, this is what I have done so far : I have written a ksh file that calls
    the command SED 3 times, in fact for each requirement as specified above:

    2) sed -e 's/ *$//' old_file >...
  9. Replies
    31
    Views
    7,646

    thanks Salem for replying. Unfortunately there...

    thanks Salem for replying.
    Unfortunately there are many more bad examples, so your solution would not work.

    Does anyone else have an idea ?
  10. Replies
    31
    Views
    7,646

    xml file parsing in C

    hi,
    is it possible to parse an XML file in C so that i can fulfill these requirements :
    1) replace all "<" and ">" signs inside the body of tag by a space, e.g. :
    Example 1:

    <foo> blabla < bla...
  11. Replies
    11
    Views
    2,544

    thanks, that is exactly what i needed :)

    thanks, that is exactly what i needed :)
  12. Replies
    11
    Views
    2,544

    can you write the code in details ? I do not...

    can you write the code in details ?
    I do not have a compiler at the moment, so I cannot make tests for now.
    Thanks
  13. Replies
    11
    Views
    2,544

    thanks. Isn't there another way to do that using...

    thanks.
    Isn't there another way to do that using a combination of the String functions provided by the C ANSI ?
    like strstr(), strtok() ...

    thanks
  14. Replies
    11
    Views
    2,544

    how to remove a character from a string

    Hello,
    my problem is quite simple to explain.
    I have the following string:

    "table+camera"

    and I want to remove the + sign:
    "tablecamera".

    How do i do that ?
  15. extracting data from a database and converting it into an XML file

    hey,
    I need some ideas, suggestions for a task I am working at work these days.
    We want to do that in C or C++.

    I have several tables from a database (Oracle).
    I need to extract data from these...
  16. thanks for your help

    thanks for your help
  17. Storing the result of a FETCH in an array (Pro*C)

    Hi,
    I'm trying, inside a for loop, in Pro*C,
    TO STORE the result of a fetch in an array,
    but I don't want any repeated result in my result array (tableau_stockage in the example)
    the following...
  18. Thread: core dump

    by lonbgeach
    Replies
    1
    Views
    1,950

    core dump

    could anyone explain me why this program will generate a core dump ? something to do with lack of memory allocation ? strcpy maybe ?


    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>...
  19. Replies
    2
    Views
    8,820

    checking if a string contains a letter

    I wrote this piece of code but I'm not satisfied at all with it. Could anyone provide me with a better and smarter code to do the trick ?
    thanks in advance



    #include <stdio.h>
    #include ...
  20. thanks for the valuable info but the use of...

    thanks for the valuable info but the use of gethostbyaddr() to get the IP address is out of question , since it is sort of hard coded :

    char * IPv4_address; /* IPv4 address i.e. a1b2:c3d4 */
    ...
  21. IPv4, IPv6, inet_ntoa(), inet_aton(), inet_pton(), inet_ntop():Hexadecimal to Decimal

    I need to write a C program to convert an IP address, in IPv6 format, (that is in hexadecimal)
    to the standard IP address format (that is 255.255.255.255).

    Example:
    a1b2:c3d4 after conversion :...
Results 1 to 21 of 21