Search:

Type: Posts; User: fredanthony

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,148

    ok, n/m I just saw the return 1; ** That...

    ok, n/m I just saw the return 1;

    ** That wasn't it, still not working **
  2. Replies
    2
    Views
    1,148

    Search a file for a value by key

    Ok, so I am trying to retrieve a value from a file given a search key. The file will be a php file containing defines, like this:


    define("LOG_DEBUG_LEVEL", "0");


    This is what I am doing,...
  3. Replies
    11
    Views
    4,040

    Right, I meant I got the function working.. I...

    Right, I meant I got the function working.. I will add checks after.
  4. Replies
    11
    Views
    4,040

    Got it to work like this: #include...

    Got it to work like this:



    #include <stdio.h>
    #include <stdarg.h>
    #include <time.h>

    void myLogger(int log_level, const char *format, ...)
    {
  5. Replies
    11
    Views
    4,040

    can anyone tell me why this isn't working? ...

    can anyone tell me why this isn't working?


    #include <stdio.h>
    #include <stdarg.h>
    #include <time.h>

    void myLogger(int log_level, char* logMessage, const char *format, ...)
    {
    FILE...
  6. Replies
    11
    Views
    4,040

    hmm, I looked through but other than usage, I...

    hmm, I looked through but other than usage, I didn't see much, please let me know if I am mistaken. Also links are dead. Thanks.
  7. Replies
    7
    Views
    1,560

    DevC++ is also good,...

    DevC++ is also good, http://www.bloodshed.net/dev/devcpp.html
  8. Replies
    11
    Views
    4,040

    make a function like printf/sprintf

    Hi, I am writing a small function that logs a string passed to it to a log file. Right now
    it looks like this:


    int logData(char* logMessage);

    int logData(char* logMessage) {
    FILE *pFile...
  9. Replies
    5
    Views
    10,877

    Ok, I see what you guys are saying, heres the...

    Ok, I see what you guys are saying, heres the thing, this file is sort of like a module, with a bunch on different functions each of which can be called at anytime and anther file will build xml...
  10. Replies
    5
    Views
    10,877

    C optional function parameter?

    Hey guys,

    I am trying to write a function that will have an optional parameter, well maybe you guys can give me a better option. I have a function that will log data (text string, etc.) to a...
  11. Replies
    11
    Views
    3,185

    For some reason the nested for's got me. So the...

    For some reason the nested for's got me. So the outer stays on the first element while the inner goes through all ten comparing and rearranging, then if there are more to swap the outer loop...
  12. Replies
    11
    Views
    3,185

    wow, that was cool stuff, I think I get it now..I...

    wow, that was cool stuff, I think I get it now..I have been trying to wrap my head around this for like 4 days :p Thanks so much guys, I appreciate all of your help and input!!
  13. Replies
    11
    Views
    3,185

    It does somewhat..sorry, I am a bit frustrated...

    It does somewhat..sorry, I am a bit frustrated with this..
    So the outer loop has the elments? 0-9? Whats getting me is the inner = outer part..if they are on the same element or they are eqaul how...
  14. Replies
    11
    Views
    3,185

    C bubble sort?

    Hey guys, I have been trying to learn c, i have this book which has an example of what is labled as a bubble sort. I am having a little trouble understand a few parts, if anyone can help clear it up...
Results 1 to 14 of 14