ok, n/m I just saw the return 1;
** That wasn't it, still not working **
Type: Posts; User: fredanthony
ok, n/m I just saw the return 1;
** That wasn't it, still not working **
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,...
Right, I meant I got the function working.. I will add checks after.
Got it to work like this:
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
void myLogger(int log_level, const char *format, ...)
{
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...
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.
DevC++ is also good, http://www.bloodshed.net/dev/devcpp.html
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...
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...
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...
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...
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!!
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...
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...