Search:

Type: Posts; User: duckdace

Search: Search took 0.01 seconds.

  1. Well. One hint we got was to use a variable in...

    Well. One hint we got was to use a variable in struct meta(never mentioned the type), to identify which datablocks that are reserved for this message. Perhaps I'm approaching this from the wrong...
  2. Yeah, I see how that can be misunderstood....

    Yeah, I see how that can be misunderstood. Actually, the strings vary in length, and one string can occupy one as well as five blocks. Edited first post. Sorry about that.
  3. Traversing through an array to find link between elements

    The following code piece is supposed to take a string of a length between 1 and 80 chars, and divide it into blocks of 16 chars each. This seems to work fine, but I would like to be able to keep...
  4. Omg, I can't believe I wrote void main. The thing...

    Omg, I can't believe I wrote void main. The thing is that it's not supposed to be main, but I had my mind elsewhere when i posted the thread.

    I thought -> was restricted to when modification_time...
  5. error: request for member 'struct variable' in something not a str

    I want to assign msg.modification_time, but with following codebit I only get "error: request for member 'modification_time' in something not a structure or union". I can't figure out why! Can...
  6. Ah, of course. Used fgets, allocated memory, and...

    Ah, of course. Used fgets, allocated memory, and it seems to work. I have to improve the algorithm a bit, but I believe I can do that without help. Many thanks!
  7. Sorting words from line-input in an array of strings

    Hi.

    My intention is to receive input from keyboard, preferably a sentence(or a command with args, for that matter) with words divided by a space, and then store each of these words as an element...
  8. Replies
    8
    Views
    8,134

    Ah, thanks. That explains it. I'm used to work on...

    Ah, thanks. That explains it. I'm used to work on computers where this is not necessary, as long as I'm in the correct foldet.
  9. Replies
    8
    Views
    8,134

    Can't run compiled c-programs in linux mint

    Hi.

    I'm having problems running a c program I made after compiling.

    What happens is this:

    $ gcc filename.c -o filename
    $ filename
    filename: command not found
Results 1 to 9 of 9