Search:

Type: Posts; User: pseudonoma

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    4,615

    i have it with an uppercase M because I have my...

    i have it with an uppercase M because I have my own function.
    The problem is that when I try to access an array location i.e. CArray[1] it gives me an error that it cannot access the memory location
  2. Replies
    3
    Views
    4,615

    Malloc for an Array of Structs

    Hey all,

    I was trying to malloc an array of structs and i always gets an error for incompatible types
    Here's part of my code:


    #define MAX_COMMANDS 50

    typedef struct {
    SpecType Type;
  3. Replacing a part of a string with an other???

    Hey all,

    I have a string1: "This is the string"
    and I want to replace the word "the" with string2: "not a"
    so that string1 becomes "This is not a string"

    i know how to use strstr to find the...
  4. Thanks

    Thanks
  5. Replies
    2
    Views
    1,028

    Another String Question

    Can i do this:

    AString = (String1 + "and" + String2);

    ??

    Or is there an other way?
    Thanks
  6. How to get a part of a string from a point onwards

    Hey all,

    I've been trying to think of a way to extract a part of a string from a position to the end of the string, and I can't figure out how.
    For example

    Zthis is is the part of the string i...
  7. Replies
    3
    Views
    6,048

    So should it be: #include ...

    So should it be:


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

    #define MAX_STRING 128

    typedef char String[MAX_STRING];
  8. Replies
    3
    Views
    6,048

    Struct array malloc and realloc

    I'm trying to get a struct to malloc (one time its size) this is the code:


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

    #define MAX_STRING 128

    typedef char String[MAX_STRING];
  9. Replies
    4
    Views
    2,693

    Thanks all for the replies, I managed to figure...

    Thanks all for the replies, I managed to figure it out with iMalc's help, and it works. Thanks for the help
  10. Replies
    4
    Views
    2,693

    Bitwise Operations to Read ON/OFF Bits

    Hey,
    I am new to C, and I'm stack on code for bitwise operation

    I need to get a function (which i have a call from main) using 3 integers to say if bits in a range are all on or off
    ...
Results 1 to 10 of 10