Search:

Type: Posts; User: Nessarose

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    12,274

    Awesome!!! It works!!! Many thanks!

    Awesome!!! It works!!! Many thanks!
  2. Replies
    7
    Views
    1,151

    Like this? printf("%c\n", (*text)[4]);

    Like this?



    printf("%c\n", (*text)[4]);
  3. Replies
    5
    Views
    12,274

    arg_vector prints correctly. The error returned...

    arg_vector prints correctly. The error returned by perror is: perror: Bad address.
    Am I initializing arg_vector correctly?
  4. Replies
    2
    Views
    7,576

    Try this:...

    Try this: http://www.opengroup.org/onlinepubs/009695399/functions/poll.html
  5. Replies
    2
    Views
    1,212

    In main() you're re-declaring the functions....

    In main() you're re-declaring the functions. Change it to:



    int main()
    {
    takeinput();
    bubblesort();
    }
  6. Replies
    5
    Views
    12,274

    execvp not working right

    I must be missing something here. I'm trying to use execvp to execute a command that a user passes to it. The way I'm doing this is by creating an arg_vector that stores the tokens of the command....
  7. Yes, was that wrong?

    Yes, was that wrong?
  8. So the child processes on the server side are...

    So the child processes on the server side are writing directly to the file descriptors which are used for sending data back to each client?

    Yes. This is the snippet of code I have that takes the...
  9. Can we use select() to capture output from execl()?

    Hello, I'm writing a server side program that needs to run a program on the UNIX server using execl() or execlp(), and I need to somehow return this output back to the client side. The server handles...
  10. Replies
    12
    Views
    1,464

    Or you could use strtok() and just pass ":" as...

    Or you could use strtok() and just pass ":" as the delimiter.
  11. Replies
    13
    Views
    1,919

    This doesn't look like a single line of code. At...

    This doesn't look like a single line of code. At an initial glance, it seems to add words to a dictionary.
  12. Well, think about the algorithm you'd use to go...

    Well, think about the algorithm you'd use to go about doing it. You want the first 6 elements of one array. How do you normally access an element in an array? How do you set the contents of an array,...
  13. Replies
    9
    Views
    5,761

    See, this is why people don't like K&R. ;) ...

    See, this is why people don't like K&R. ;)

    *ducks*
  14. Replies
    21
    Views
    7,286

    I would suggest reading up on recursion. If you...

    I would suggest reading up on recursion. If you don't understand how that works, you're not going to be able to write the program.
  15. Thread: Newbie

    by Nessarose
    Replies
    21
    Views
    2,968

    This is pretty good: http://www.iota-six.co.uk/c/

    This is pretty good: http://www.iota-six.co.uk/c/
  16. Replies
    5
    Views
    2,485

    One way to do this would be to create an array...

    One way to do this would be to create an array that represents all the characters in the alphabet and to initialize the contents to 0. You can then increment the contents by 1 the first time a...
  17. Replies
    8
    Views
    1,431

    And if you're using C99 you could include the int...

    And if you're using C99 you could include the int i in the for loop itself:



    for (int i = 0 i < n; i++)
  18. Replies
    9
    Views
    1,643

    Simple port scanner maybe? You get to learn...

    Simple port scanner maybe? You get to learn socket programming along the way.
  19. Ok, this is what I meant: #include...

    Ok, this is what I meant:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #define DELIM " \n\t"
  20. You could make use of strtok() to tokenize the...

    You could make use of strtok() to tokenize the sentence into separate words and then use strlen() to determine which is the longest.
  21. Replies
    7
    Views
    1,764

    Copy and paste it?

    Copy and paste it?
  22. Replies
    6
    Views
    3,941

    From http://www.faqs.org/faqs/C-faq/faq/

    From http://www.faqs.org/faqs/C-faq/faq/
  23. Replies
    11
    Views
    8,319

    If you're not sure what the dimensions are,...

    If you're not sure what the dimensions are, perhaps it would be better to create a dynamic data structure that can grow and shrink. Perhaps a linked list.
  24. Replies
    11
    Views
    8,319

    http://www.hermetic.ch/cfunlib/arrays/arrays.htm

    http://www.hermetic.ch/cfunlib/arrays/arrays.htm
  25. Replies
    16
    Views
    2,627

    What does your code look like? It prints out fine...

    What does your code look like? It prints out fine for me:



    double x = 23.00;
    long y = x;
    printf("%ld\n", y);
Results 1 to 25 of 46
Page 1 of 2 1 2