Search:

Type: Posts; User: explodecomputer

Search: Search took 0.01 seconds.

  1. Hey thanks for the reply. So that would create an...

    Hey thanks for the reply. So that would create an inner memory block, is it possible to create an outer memory block?
  2. dynamic array of struct within dynamic array of struct

    Hey

    Here's an example of how I've been allocating structs:



    typedef struct outer {
    char n;
    inner *b;
    } outer;
  3. Cool it works, many thanks! Stupid mistake I...

    Cool it works, many thanks! Stupid mistake I guess. Just for completeness here is the working version:

    void **get_space(int m, int n, size_t size, size_t psize)
    {
    int i;
    void...
  4. Generalise functions by specifying type as an argument

    Hi there

    This is not an urgent question, I'm just curious to know if there is an answer. I've done a search but nothing has come up - I suspect this is because I don't know how to pose the...
  5. Ok cool. Thanks for the reply, I'll do it that...

    Ok cool. Thanks for the reply, I'll do it that way.
  6. passing specific dimensions of arrays to functions

    Hi

    Hope somebody can help me with this problem. I'm declaring a 3D array like this:



    int ***make_cube(int x, int y, int z)
    {
    int i,j;
    int *p, **p1, ***a;
Results 1 to 6 of 6