Search:

Type: Posts; User: ansgar.snow

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,499

    Nicely done, thank you for help. For the edge...

    Nicely done, thank you for help.
    For the edge cases, I think ASIZE should be 4096+1 or PATH_MAX+1, but I am not sure on this.
  2. Replies
    5
    Views
    3,499

    Thank you for help, I've updated the code a bit,...

    Thank you for help, I've updated the code a bit, but it still has the problem with realpath:
    Compiler Explorer
  3. Replies
    5
    Views
    3,499

    Getting absolute path of a file in c

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<fcntl.h>
    #include<error.h>
    #include<limits.h>
    #include<sys/mman.h>
    #include<unistd.h>
    #include<memory.h>...
  4. Replies
    10
    Views
    1,217

    This cpp reverseString is just my solution for...

    This cpp reverseString is just my solution for some codewars.com kata, and the benchmark part is improvised for testing perf against some other solutions using godbolt, so may be not working in your...
  5. Replies
    10
    Views
    1,217

    String reversing and benchmark in C

    Im trying to do the C version of something like that in c++:



    #include <string>
    #include <bits/stdc++.h>
    #include <cstdio>


    std::string reverseString (std::string str )
  6. Replies
    3
    Views
    4,383

    Hey. Thank you for answering and reviewing my...

    Hey. Thank you for answering and reviewing my code, you made really good points there and i've learn a lot.
    I mostly do specialize in scripting languagees so I terribly suck in algo and i don't know...
  7. Replies
    3
    Views
    4,383

    Issues with writing data to binary files

    Im trying to write my custom file encrypter, but the outfile fp2 is empty so I'm doing something wrong here:



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

    #defineSIZE(a)...
  8. Replies
    1
    Views
    1,645

    being dumb again

    I stumble on some simple prime generator implementation in basic C, it was supposed to be something like function returning array of size_t values:



    size_t * primeGen(size_t _MAX_)
    {
    ...
  9. Replies
    1
    Views
    4,762

    Getting array size

    #pragma once
    #define SIZE(a) sizeof(a) / sizeof(a[0])


    #include <stdio.h>


    void iter_ints (int arr[])
    {
    int arrSize = SIZE(arr);
  10. Replies
    1
    Views
    6,147

    MSYS2 vs CLion

    Hey. I am trying to use CLion ide for my C11 Windows projects cause VS is not supporting it, and I have some weird issues with it, I can compile exact same thing with gcc from console but somehow...
  11. Replies
    2
    Views
    8,209

    Crap, such a obvious mistake and somehow I didnt...

    Crap, such a obvious mistake and somehow I didnt saw it. Thanks a lot sir.
  12. Replies
    2
    Views
    8,209

    Compile error with '||' operator.

    Hey. Im trying to learn some C basics, I have only some python background and these vogue compiling errors on the silliest things are killing me. Like:


    #include <cs50.h>
    #include <stdio.h>

    ...
  13. Replies
    1
    Views
    3,360

    Libssh & Windows @ C 11

    Hey lads! Im on unix system since like 20yrs now and windows is my true nemesiss, so I have a really hard time while trying to include libssh in my app which has to be built on windows:( "I did...
Results 1 to 13 of 13