Search:

Type: Posts; User: charlitos

Search: Search took 0.00 seconds.

  1. Thread: c[-1]?

    by charlitos
    Replies
    21
    Views
    2,643

    the reason why "someone" included the terminology...

    the reason why "someone" included the terminology of "bad programming practices" is because they are bad programming practices, hence, should be avoided. I see no reason to hold on to a very buggy...
  2. Thread: Whats wrong?

    by charlitos
    Replies
    24
    Views
    2,616

    did you use the code I posted?... we told you to...

    did you use the code I posted?... we told you to get rid of the loop and other stuff, use the code I posted, its pretty much the same you had plus some recommendations already given on here.
  3. Thread: Whats wrong?

    by charlitos
    Replies
    24
    Views
    2,616

    No its not wrong in C, and I always initialize my...

    No its not wrong in C, and I always initialize my string arrays just in case I forget to put a null character after I use some functions to manipulate strings. It is just a good programming practice...
  4. Thread: Whats wrong?

    by charlitos
    Replies
    24
    Views
    2,616

    lol, here is the light Neo: ...

    lol, here is the light Neo:



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

    #define MAX 100
  5. Replies
    1
    Views
    1,260

    File Streams or File Descriptors?

    Id like to know what are the major advantages on using one or the other? In other words what makes them differ and why this difference is necessary ?
  6. Replies
    7
    Views
    2,012

    You have a few errors there but just look at this...

    You have a few errors there but just look at this example that works and you should be able to get yours right:




    typedef struct
    {
    char color[20];
    char size [1];
    int qty [5];
  7. Replies
    9
    Views
    1,988

    use sizeof on your call to malloc and also try to...

    use sizeof on your call to malloc and also try to avoid the use of void pointers if theres another alternative.
  8. Replies
    4
    Views
    1,338

    oh sorry, i didnt notice that one, thanks a lot

    oh sorry, i didnt notice that one, thanks a lot
  9. Replies
    4
    Views
    1,338

    i included all the headers and the function...

    i included all the headers
    and the function prototype is also on top

    the fd is not like that on my code i just made a mistake after i copied

    anyway i edited my code the same way I have it, so...
  10. Replies
    4
    Views
    1,338

    stack cant find null

    Can somebody help me to find out why does my loop go forever, even when im telling it to stop once it finds NULL?


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include...
  11. Replies
    3
    Views
    36,781

    clear a string

    how do I clear a string in C after I used it? I just want to clean it and fill it up with null characters.
  12. Replies
    5
    Views
    1,160

    sorry I think I blamed the wrong function...here...

    sorry I think I blamed the wrong function...here is the code



    //this function works great it adds the second string after the
    //null character in base propperly
    int build_stream(char * base...
  13. Replies
    5
    Views
    1,160

    storage beyond NULL

    Hi guys,

    Im trying to store characters beyond my '\0' character in an array of char


    char myvar[256] = {};

    Im filling up character by character trying to get something like:

    H | E | L |...
Results 1 to 13 of 13