Search:

Type: Posts; User: 3saul

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,581

    Thanks a lot. That did it.

    Thanks a lot. That did it.
  2. Replies
    2
    Views
    1,581

    Issue with FAQ example

    I'm having some trouble with one of the FAQ examples

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608

    I have adapted the code as below yet all I get is directory...
  3. Replies
    12
    Views
    5,542

    problem fixed! thank you everybody for your help....

    problem fixed! thank you everybody for your help. The problem was in fact adding the additional paths and libraries to my project (stupid)....so you were right, nothing to do with the Makefile...

    ...
  4. Replies
    12
    Views
    5,542

    Yes I've tried that already (see build messages)....

    Yes I've tried that already (see build messages). That's why I was heading down the path of ill configured libraries and looking at ldconfig, not that I know what to look for though, hence my posts....
  5. Replies
    12
    Views
    5,542

    I'm not entirely sure which part of the Makefile...

    I'm not entirely sure which part of the Makefile will have the info you need...so I'll post the whole thing. Also the makefile is being generated with version 1.4 - which is an old version..but has...
  6. Replies
    12
    Views
    5,542

    Let me know if you need more. BTW..I've 'cleaned'...

    Let me know if you need more. BTW..I've 'cleaned' the makefile many times and recreated it but obviously when it recreates it it still has the same problems...let me know if you need more from the...
  7. Replies
    12
    Views
    5,542

    Yes it is my app. Everything was working until I...

    Yes it is my app. Everything was working until I added gconf to my code. It seems to be some kind of misconfiguration in Ubuntu (6.06) because I get the same thing on my other pc with the exact same...
  8. Replies
    12
    Views
    5,542

    Surely there's something someone can suggest that...

    Surely there's something someone can suggest that I try....look for! I'm using Ubuntu 6.06.

    Thanks
  9. Replies
    12
    Views
    5,542

    ldconfig show's that they're installed...

    ldconfig show's that they're installed correctly..

    ldconfig -p | grep gconf
    libgconf-2.so.4 (libc6) => /usr/lib/libgconf-2.so.4
    libgconf-2.so (libc6) => /usr/lib/libgconf-2.so
    ...
  10. Replies
    12
    Views
    5,542

    undefined reference

    I'm having problems linking my app. Here are the build messages



    Building the whole Project: iop ...
    make
    make all-recursive
    make[1]: Entering directory `/home/lx1/Projects/iop'
    Making...
  11. Replies
    1
    Views
    867

    Separate text when reading text

    I have a file that has the following layout

    Data:\t (tab)serial

    Should I use strtok to separate the Data:\t from the string I want or use something else?



    #define DELIM_2 "Data:\t"
  12. Replies
    1
    Views
    1,920

    Get pid based on command

    Is there a function somewhere that will let me pass it the executable file name and it will return the pid (if its running)?

    I thought I'd ask before writing a function to trawl through...
  13. Replies
    10
    Views
    40,342

    Something along these lines is what I need...of...

    Something along these lines is what I need...of course this does not work! ;)




    {
    const char *name = "LANGUAGE";
    int i = 0;
    char *tmp;
    tmp = getenv (name);
  14. Replies
    10
    Views
    40,342

    Read string until find char

    Given the following string 22E:77

    I need to copy the characters from the string into another array up until it reaches the : character

    I couldn't get this working properly with fgetc. Any help...
  15. Replies
    2
    Views
    1,219

    Security question...

    **Repost from Linux forum**

    I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How can I make this system call that will include the password...
  16. Thread: Security

    by 3saul
    Replies
    1
    Views
    1,395

    Security

    I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How can I make this system call that will include the password without someone being able to...
  17. Replies
    4
    Views
    1,881

    Increase size of global multidimensional array

    I have a need to create a global multidimensional array of unknown size (size is determined later in the program). My questions are:
    1. How should I declare it initially
    2. How do I later in my...
  18. Replies
    4
    Views
    11,078

    The above code didn't work but I figured it out....

    The above code didn't work but I figured it out. Use the following

    if( dir->d_type == DT_DIR )
  19. Replies
    4
    Views
    11,078

    Thanks but I don't have mode.h on my system...

    Thanks but I don't have mode.h on my system (Ubuntu 5.10).
  20. Replies
    11
    Views
    3,172

    I'd highly recommend Anjuta

    I'd highly recommend Anjuta
  21. Replies
    4
    Views
    11,078

    List files in a directory (without folders)

    From the FAQ:

    This code lists not only files but folders as well


    #include <dirent.h>
    #include <stdio.h>

    DIR *d;
    struct dirent *dir;
  22. Replies
    6
    Views
    1,869

    How do I use su half way through my app? As my...

    How do I use su half way through my app? As my original post said I need to initially run my app as a normal user...then obtain root priviledges...
  23. Replies
    6
    Views
    1,869

    Privileges problem

    I'm creating a program that needs to be initially run as a normal user to get some information specific to the user but for certain functions requires root priviledges. I'm using linux..what would be...
  24. Replies
    7
    Views
    1,277

    Sorry that was a typo...I've corrected it now....

    Sorry that was a typo...I've corrected it now. Basically it reads a file or folder name and compares it. Now depending on whether or not if finds a match it will change the string that is being...
  25. Replies
    7
    Views
    1,277

    Avoiding 'GOTO' - Help with some code

    I have the following code



    d = opendir(sf_homedir)
    int z = 1;
    if (d)
    {
    while ((dir = readdir(d)))
    {
Results 1 to 25 of 63
Page 1 of 3 1 2 3