Search:

Type: Posts; User: merafiq

Search: Search took 0.01 seconds.

  1. Ok, i found if ((i!=5) && (i!=7) && (i!=9))

    Ok, i found


    if ((i!=5) && (i!=7) && (i!=9))
  2. multiple condition for single variable in single line

    How to one variable against multiple condition ?


    if x != 4 OR 6 OR 7 OR 13
    printf ("x")
  3. Replies
    2
    Views
    468

    I presume you wish if press Y / N it will get...

    I presume you wish if press Y / N it will get back the menu without pressing Return.

    system ("cls");

    shows, you probably trying on windows.

    Maybe below code would help you a little, but its...
  4. that's right. Basically, it need one clock...

    that's right.
    Basically, it need one clock running and a time variable to compare with file time.
  5. Compare of time [sec.usec] to execute a function

    Hi,
    I've a file as



    [time[sec.usec],X,Y]

    0.707834,1111,750
    0.715809,1109,750
    0.723797,1107,749
  6. Replies
    1
    Views
    428

    User input either voice or manual

    I'm intended to include a feature to take input for one of my program as voice (pocketsphinx), where manual input is already exist.

    How am I able to sense both program (manual / voice) at same...
  7. Replies
    8
    Views
    1,385

    Many thanks for your suggestion. However, as...

    Many thanks for your suggestion. However, as return header is always constant, I decide to count the string for my value.
  8. Replies
    8
    Views
    1,385

    how to parse specific part of a string.

    I've a little program to get IP address by sending http request to api.ipify.org. Its working, but returning some HTTP header along.

    However, I'd like to get only the ip address in a char array,...
  9. Replies
    8
    Views
    4,965

    Hi, Thanks for your advise. But my requirement...

    Hi,
    Thanks for your advise.
    But my requirement is quite little [extracting, and generating with only required value] (I'm also concern of broken xml).
    Includes very less chance of using library....
  10. Replies
    8
    Views
    4,965

    Hi, Many thanks for your reply. I've count...

    Hi,
    Many thanks for your reply.
    I've count alike, lat + lon both taken 8 character = 16 + 1 NULL = 17.
    [not sure whether its correct]

    Now, I endup as below ->



    int main()
  11. Replies
    8
    Views
    4,965

    Optimize memory management

    Hi,
    With concern of buffer overflow, memory leaks and/or having invalid pointer issue, change of pointer to garbage etc.

    I didn't use realloc & strcat to avoid such problem in this program.
    ...
  12. Replies
    1
    Views
    975

    C code to write XML file

    Hello,
    Which serves best to write multiple lines XML file, fprintf() or fputs()
    ?

    consideration -
    1. New Line / Next line
    2. multiple elements
    3. Later will parse as general xml structure.
  13. Replies
    1
    Views
    795

    string array assignment problem.

    I've got segmentation fault.

    How to assign next value to array after initialization.



    char *states[] = {
    "California", "Oregon",
    "Washington", "Texas"
    };
  14. Replies
    5
    Views
    656

    No help for here now. Gave here, if anybody make...

    No help for here now. Gave here, if anybody make search as topic, maybe help them.
  15. Replies
    5
    Views
    656

    Reading a file between given two lines

    I was in need of reading a file between two given lines.

    Google brings me,

    http://rosettacode.org/wiki/Read_a_specific_line_from_a_file
    which reading specific line.

    Later, I gave two mug...
  16. Replies
    2
    Views
    932

    WoW - many thanks phantomotap that work as blitz.

    WoW - many thanks phantomotap that work as blitz.
  17. Replies
    2
    Views
    932

    C http-request returns error

    My Telnet query to api.ipify.org ->


    Escape character is '^]'.
    GET / HTTP/1.1
    HOST: api.ipify.org

    HTTP/1.1 200 OK
    Server: Cowboy
    Connection: keep-alive
Results 1 to 17 of 17