Search:

Type: Posts; User: walkingbeard

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,123

    Thanks guys. I just came to the conclusion I...

    Thanks guys. I just came to the conclusion I should be freeing the memory in the calling function, but I thought I'd check.
  2. Replies
    5
    Views
    1,123

    Memory freed at the end of function?

    Hi,

    I was just wondering about this function I wrote:


    /*Reverses a string*/
    char *strrev(char *in_string) {
    char *out_string;
    int in_char,
    out_char;
  3. Replies
    3
    Views
    863

    Cheers! Those pesky buffers. :rolleyes:

    Cheers! Those pesky buffers. :rolleyes:
  4. Replies
    3
    Views
    863

    Another character input problem

    Hi. Here's the code:


    /* Jack White 090455775
    EE Programming Fundamentals Lab 9
    Question 3
    */

    #include <stdio.h>
  5. Replies
    160
    Views
    276,559

    Sticky: C How to Program...

    C How to Program by Deital is good, but extremely dense and much worse for it.
  6. Output: [ec09411@dil015 3_4]$ ./Lab3_4...

    Output:


    [ec09411@dil015 3_4]$ ./Lab3_4
    Enter a 4-digit number: 6546
    Your number is 6 5 4 6.
    [ec09411@dil015 3_4]$
  7. Here's my answer to my C course question. I'm...

    Here's my answer to my C course question. I'm proud, even though it's only small. It does what I think the original question is:


    EE Programming Fundamentals Lab 3
    Question 4
    */

    #include...
  8. Replies
    3
    Views
    1,020

    Awesome guys. Thank you. That's one to be...

    Awesome guys. Thank you. That's one to be passed around.
  9. Replies
    3
    Views
    1,020

    Character reading problem

    Hi,

    Please take a look at this. It's only basic, since I'm doing my foundations course in C at university.

    When I run the compiled programme, I get the following output:


    [ec09411@dil027...
Results 1 to 9 of 9