Search:

Type: Posts; User: AaronP

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    10,293

    For chrissake, I think you're right. I hate...

    For chrissake, I think you're right. I hate programming.

    In a masochistic sort of way.
  2. Replies
    4
    Views
    10,293

    Yeah, same deal.

    Yeah, same deal.
  3. Replies
    4
    Views
    10,293

    previous definition is here

    I've got a struct



    typedef struct _entry{
    bool is_submenu;


    gchar *name;
    gchar *command;
  4. Replies
    12
    Views
    3,114

    Perhaps. I'm using the binary in the Arch Linux...

    Perhaps. I'm using the binary in the Arch Linux (i686) repos. Thanks for the help, though. :)
  5. Replies
    12
    Views
    3,114

    Well I'm declaring a set of constant arrays in a...

    Well I'm declaring a set of constant arrays in a header, so I don't want to use malloc. I'm just looking for a good way to store the arrays size within the data so I can pass it to a function without...
  6. Replies
    12
    Views
    3,114

    I'm using gcc with -std=c99. EDIT: It...

    I'm using gcc with -std=c99.


    EDIT: It compiles with clang, though. :/
  7. Replies
    12
    Views
    3,114

    Hmm, using the above solution, I'm still getting...

    Hmm, using the above solution, I'm still getting the error "initializer element not constant" for q_keys.
  8. Replies
    12
    Views
    3,114

    Hmm. Well, what's the best practice for getting...

    Hmm. Well, what's the best practice for getting this effect in C?
  9. Replies
    12
    Views
    3,114

    array type flexible array?

    I'm trying to set up a simple array type that is aware of its size in C. "Flexible arrays" seemed at first glance to be the solution, but I ran into problems. Here's what I've got so far.


    ...
  10. Replies
    4
    Views
    1,735

    Ah, thanks to both Tater and KC, I've got it...

    Ah, thanks to both Tater and KC, I've got it working. Yeah I know, it's not the best way to do things, but I've already put off enough exercises for until I review pointers that I want to make sure I...
  11. Replies
    4
    Views
    1,735

    K&r 1-17 copying strings

    I'm going through the K&R examples, and I've run into a snag on 1-17.

    My current code:


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

    const int MAX_ARRAY_SIZE = 1000;
Results 1 to 11 of 11