Grumpy - thanks for that.
Many thanks.
Type: Posts; User: pc_doctor
Grumpy - thanks for that.
Many thanks.
Not to worry - sorted it....
xmlGetProp(cur, "name");
"name" needed to be casted so that it said xmlGetProp(cur, (const xmlChar *)"name");
Thanks
Hi I am having this issue and not sure how to resolve.
I am having to compile my code using g++ instead of gcc for a number of reasons, however I am getting:
main.cpp:129: error: invalid...
Hi,
I'm just thinking about the best idea for this scenario.
I want a global structure to hold information, however when imputing this information, I want to use a parse function that will...
Hi,
Just a quick question - I am currently debugging a large quantity of code (a 3G Protocol Stack).
Something thats bothering me - if a #define is referenced in two files with either the same...
Coverity tool is good!
The printf's at the bottom...
I am also getting a few errors when I compile it.
Hi,
Im trying to print out Structs within structs...but Im confused in terms of how you call it from within a printf statement.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>...
Use e-macs it does it for you :P
Hi,
Im getting these warnings when gccing with -Wall
sample-.c: In function `ISls':
sample-.c:214: warning: array subscript has type `char'
sample-.c:218: warning: array subscript has type...
Hey.
Im getting a warning message: passing arg 2 of `strstr' makes pointer from integer without a cast
Im trying to bring in a string "ls -la" for example and to take it to my function....yet it...
Lol - Yeah i know...Im blaming it on not enough sleep and getting stressed about all these elements of my program...
LS,
KILL,
PS,
PWD,
CD
All combined into a shell.
That gives the complier error:
sample2.c:93: error: `argc' undeclared (first use in this function)
sample2.c:93: error: (Each undeclared identifier is reported only once
sample2.c:93: error: for...
Ahh ok - so basically you cannot have Ints and Chars in the same thing....what way round it is there?
Hey Guys,
Trying to create a case switch for my separate functions...
Here it is:
switch(i)
{
case 0: IScd(int argc, char *argv[]); break;
Hi,
When compiling in emacs in linux i can not run the .exe in windows, though i can in Linux.
How do i compile a .c program to run in Windows?
And likewise when compiling in Dev-C and...
It works now - It was because Vista must have been blocking something, because it works in XP now.
What programs etc do you use for C programming?
New code:
But still crashing after entering a name(stuname).
#include <stdio.h>
main()
{
int mathsmark, englishmark, overallgrade;
char stuname[50];
Is this it? As it didn't work with this as well.
printf("your total mark%s", stuname);
Hi,
Im trying to get this program to run - it complies but it crashes in DOS. It is down to the Stuname i think, or maybe having two print F's. Hope you can help.
Jon
#include <stdio.h>
...