Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.32 seconds; generated 59 minute(s) ago.

  1. Replies
    1
    Views
    82

    So where in your code do you take care of the...

    So where in your code do you take care of the following

    Linked list - Wikipedia
    If you delete the first node, you have a new head.
    If you delete a node in the middle, you need to then make...
  2. Replies
    7
    Views
    189

    This is what it produces as a byte stream. $...

    This is what it produces as a byte stream.


    $ cat foo.c
    #include <stdio.h>
    int main () {
    printf("\x81 \x94 \x99 \x9A\n");
    printf(" \n");
    printf("\x2e\n");
    return 0;
  3. Replies
    4
    Views
    109

    The first thing you need to do is edit your post...

    The first thing you need to do is edit your post and then paste the code "text only".
    The horrible colour scheme from your IDE conflicts with the board and reduces your code to mush.

    Or just...
  4. Replies
    5
    Views
    130

    Well the way to run a console program is by...

    Well the way to run a console program is by opening a console (cmd.exe) and then doing
    cd \path\to\bin\Debug
    prog.exe


    Double-clicking on it in explorer will just create a console for the...
  5. Replies
    7
    Views
    189

    Well the representation of non ASCII characters...

    Well the representation of non ASCII characters depends on
    - your OS
    - your compiler
    - your console/terminal (not all are capable of rendering extended characters)
    - your fonts (not all have...
  6. So it would seem. Gede : Start...

    So it would seem.
    Gede : Start
    Still looks like a toy rather than anything I'd want to use in anger.

    Much less using it as the 'excuse' for not being able to copy/paste text.
  7. > I would if gede provided that option, as it...

    > I would if gede provided that option, as it currently stands it doesn't so image it was.
    Try harder - seriously.

    If you can't figure out what combination of ctrl-alt-meta allows you to copy the...
  8. You couldn't have compiled with debug enabled so...

    You couldn't have compiled with debug enabled so at least you get line numbers in your code.
    And as for posting an image of something you could copy/paste - pah!
    ...
  9. > I mean more practical way to learn how the...

    > I mean more practical way to learn how the instructions translate to binary like a specification,
    That information is in the processor reference manual (for whichever machine you're interested...
  10. Thread: Shell commands

    by Salem
    Replies
    3
    Views
    117

    -Werror is one way Redirecting the stderr of...

    -Werror is one way

    Redirecting the stderr of the compilation to a file, and checking whether that file is empty is another.
  11. > I would prefer something more practical cause...

    > I would prefer something more practical cause this will be a pain to do
    That's why we use assemblers and compilers, so we don't have to do that.

    But hey, you wanted to do it all by yourself.
  12. Thread: Shell commands

    by Salem
    Replies
    3
    Views
    117

    Look at $? gcc -g -Wall -Wextra -pedantic...

    Look at $?



    gcc -g -Wall -Wextra -pedantic -std=c11 try40.c -lm -o try40.out
    if [ $? -eq 0 ]; then ./try40.out ; fi
  13. Maybe this The elfutils project...

    Maybe this The elfutils project

    Dunno, it's one of those esoteric things to want to do.
    Like you're the maintainer for binutils and you're porting to a completely new architecture.

    Enjoy.

    $...
  14. Replies
    1
    Views
    149

    For something that simple, just use an inline...

    For something that simple, just use an inline function.


    static inline void exit_the_prog() {
    printf("Error: There was an error with the program");
    exit(2);
    }


    Templates are for...
  15. Replies
    1
    Views
    123

    Well posting what your 'Reversi_t' type looks...

    Well posting what your 'Reversi_t' type looks like would be a big help.
  16. Thread: Task creations

    by Salem
    Replies
    7
    Views
    251

    Sure, why not - let's see how far you can run...

    Sure, why not - let's see how far you can run with this.

    Your very basic task control block needs a few things
    - a task state, see FreeRTOS task states and state transitions described for ideas....
  17. Thread: Task creations

    by Salem
    Replies
    7
    Views
    251

    It's all in the previous threads.

    It's all in the previous threads.
  18. Thread: Task creations

    by Salem
    Replies
    7
    Views
    251

    You mean you got nothing from your previous...

    You mean you got nothing from your previous threads?
    How do you design scheduler ?
    Top design- real time operating system
    How to write code for round robin scheduling
    Free rtos code example 1...
  19. Replies
    5
    Views
    185

    codeblocks-20.03mingw-setup.exe is an all-in-one...

    codeblocks-20.03mingw-setup.exe is an all-in-one package.
    You just install it, and you get the compiler, debugger, editor all wrapped up for you.

    There is nothing else needed to start writing...
  20. Replies
    5
    Views
    185

    Eclipse is just an IDE. It doesn't come with a...

    Eclipse is just an IDE.
    It doesn't come with a compiler, hence the "g++ not found in PATH" messages.

    If you want an all-in-one complete package, try code::blocks.
    Binary releases - Code::Blocks...
  21. A couple of basic things first before trying more...

    A couple of basic things first before trying more advanced things.

    > fgets(hraci[id_hraca].meno,50,stdin);
    Don't lie about your buffer sizes.

    Use sizeof on the array you're reading into, like...
  22. Replies
    2
    Views
    139

    You could make a union out of it. typedef...

    You could make a union out of it.


    typedef struct
    {
    uint8_t type;
    uint8_t num;
    uint8_t id;
    union {
    int value;
  23. Replies
    2
    Views
    326

    I suppose the first question would be,...

    I suppose the first question would be, whereabouts in the world are you geographically located (country/state or equivalent).

    Second question, how far are are you willing to relocate?

    > I'm a...
  24. Replies
    5
    Views
    180

    Your concatenate is fine, so long as your array...

    Your concatenate is fine, so long as your array has a NULL sentinel value at the end.

    No sentinel, then you need to provide a count of how many elements there are.
  25. Replies
    5
    Views
    180

    As far as the compiler is concerned, a string...

    As far as the compiler is concerned, a string constant is represented as an anonymous char array.

    So your first post is


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

    const...
Results 1 to 25 of 490
Page 1 of 20 1 2 3 4