Search:

Type: Posts; User: boqsc

Search: Search took 0.01 seconds.

  1. Invalid Memory Access when passing string literals to an argument

    I'm trying to call this search and replace function, and it says invalid memory access.
    How should I modify the function, so that it would be possible to pass literal strings as arguments.


    ...
  2. Replies
    15
    Views
    1,699

    It's all about trying to make a simple modular...

    It's all about trying to make a simple modular project.

    I'm intentionally including .c files instead of making a seperate .h file to make it a single portable source file.

    I'm about to make a...
  3. Replies
    15
    Views
    1,699

    Thank you, now it seems to work out. However,...

    Thank you, now it seems to work out.

    However, as of right now I started to get

    program.c:16: error: redefinition of 'main'

    Program.c


    #include <stdio.h>
  4. Replies
    15
    Views
    1,699

    This forum seems to be as disgusting as you are,...

    This forum seems to be as disgusting as you are, please go back to your cave, useless prick.
  5. Replies
    15
    Views
    1,699

    Well the thread and main topic is not about your...

    Well the thread and main topic is not about your expectations, but to reach the goal of my expectation, that is an output. It is clearly stated. I'm not even sure why are you even posting here if you...
  6. Replies
    15
    Views
    1,699

    I stated the expectations by showing the expected...

    I stated the expectations by showing the expected output.


    I use TCC, but the -E is useful in detemining some logic about the pre-processsor, thank you for that.


    At this point, everything is...
  7. Replies
    15
    Views
    1,699

    #ifndef is not working as expected.

    Let's say I have
    program.c that is the main runnable source file.
    #include <stdio.h>
    #include "Hookprogram.c"


    #ifndef PAL_INCLUDED
    #define PAL_INCLUDED
    #define another main
    #endif
Results 1 to 7 of 9