Search:

Type: Posts; User: pc_doctor

Search: Search took 0.00 seconds.

  1. Grumpy - thanks for that. Many thanks.

    Grumpy - thanks for that.

    Many thanks.
  2. Not to worry - sorted it.... xmlGetProp(cur,...

    Not to worry - sorted it....
    xmlGetProp(cur, "name");
    "name" needed to be casted so that it said xmlGetProp(cur, (const xmlChar *)"name");

    Thanks
  3. Using libxml2 invalid conversion from const char* to const xmlChar* error

    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...
  4. Replies
    2
    Views
    1,136

    Structure question

    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...
  5. Thread: #Defining

    by pc_doctor
    Replies
    2
    Views
    1,417

    #Defining

    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...
  6. Thread: Free Tools

    by pc_doctor
    Replies
    6
    Views
    1,520

    Coverity tool is good!

    Coverity tool is good!
  7. Replies
    4
    Views
    1,550

    The printf's at the bottom... I am also...

    The printf's at the bottom...

    I am also getting a few errors when I compile it.
  8. Replies
    4
    Views
    1,550

    Confused with Structs and pointers

    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>...
  9. Replies
    13
    Views
    1,811

    Use e-macs it does it for you :P

    Use e-macs it does it for you :P
  10. Replies
    5
    Views
    25,676

    warning: array subscript has type `char'

    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...
  11. Trying to get ls -l say into a function.

    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...
  12. Replies
    8
    Views
    2,194

    Lol - Yeah i know...Im blaming it on not enough...

    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.
  13. Replies
    8
    Views
    2,194

    That gives the complier error: sample2.c:93:...

    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...
  14. Replies
    8
    Views
    2,194

    Ahh ok - so basically you cannot have Ints and...

    Ahh ok - so basically you cannot have Ints and Chars in the same thing....what way round it is there?
  15. Replies
    8
    Views
    2,194

    Case Switch issue

    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;
  16. Replies
    3
    Views
    2,118

    Compiling Issues

    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...
  17. Replies
    10
    Views
    1,769

    It works now - It was because Vista must have...

    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?
  18. Replies
    10
    Views
    1,769

    New code: But still crashing after entering a...

    New code:
    But still crashing after entering a name(stuname).

    #include <stdio.h>

    main()

    {
    int mathsmark, englishmark, overallgrade;
    char stuname[50];
  19. Replies
    10
    Views
    1,769

    Is this it? As it didn't work with this as well....

    Is this it? As it didn't work with this as well.


    printf("your total mark%s", stuname);
  20. Replies
    10
    Views
    1,769

    Code is hanging - Very simple C (Beginner)

    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>
    ...
Results 1 to 20 of 21