HackerTrans
トップ新着トレンドコメント過去質問紹介求人

rantouan

no profile record

投稿

Compbolt: A lib with a hard to misuse API (based on Matt Godbolt)

github.com
2 ポイント·投稿者 rantouan·昨年·0 コメント

[untitled]

2 ポイント·投稿者 rantouan·2 年前·0 コメント

Badgermole is a library for creating an SSH App server for OTP

github.com
3 ポイント·投稿者 rantouan·2 年前·1 コメント

Dear software engineer: please be flexible

blog.simplecode.gr
1 ポイント·投稿者 rantouan·2 年前·1 コメント

コメント

rantouan
·昨年·議論
overflow problems, which I try to avoid, start only if its bigger than int.

So I had assumed that in my case I'm alright. Do you see any change needed that I can't see ?

---

Maybe a good idea would had been to go by platform or architecture and use some macros to do the check only if it's really needed. What do you think of it ? How would you implement it ?

You can make a pull request as well.
rantouan
·昨年·議論
not bad, check my suggestion for pull request, above
rantouan
·昨年·議論
For the restoring part, could you make a pull request please ? Open source strength is that we work together on things.
rantouan
·昨年·議論
hello, errno is set to 0 first thing.

I added now a "/** * * */" separator to make it even more clear.

I don't know, but I like separating things like that, I think it's handy for cases like now that setting the errno was kind of mixed with vars initialization.

```

    errno = 0;

    char *strtolEndptr;
    ...

```

->

```

    errno = 0;

    /*** * * ***/

    char *strtolEndptr;
    ...
```
rantouan
·昨年·議論
https://www.gnu.org/savannah-checkouts/gnu/libc/index.html : The project website can be found here: https://sourceware.org/glibc

->

https://sourceware.org/ Links table on the left -> "GLIBC" button

->

https://sourceware.org/glibc/ Top menu -> "sources"

->

https://sourceware.org/glibc/sources.html "gitweb" link

->

https://sourceware.org/git/?p=glibc.git Top menu -> "tree" link

->

https://sourceware.org/git/?p=glibc.git;a=tree Tree -> "stdlib" link

->

https://sourceware.org/git/?p=glibc.git;a=tree;f=stdlib;h=93... Tree -> "atoi.c" row -> "raw" link

->

https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=stdli...

``` /* Convert a string to an int. / int atoi (const char nptr) { return (int) strtol (nptr, (char *) NULL, 10); } libc_hidden_def (atoi) ```
rantouan
·2 年前·議論
very good !
rantouan
·2 年前·議論
voting up because I don't care if the API may be down, it's the idea that matters and the idea is good ! Keep working on it
rantouan
·2 年前·議論
Badgermole is a library for creating an SSH App server for OTP (One-Time Passwords) for authenticating requests to HTTP server. This library exists because usernames and passwords are unsafe in this day and age, while other OTP mechanics have become complicated.
rantouan
·2 年前·議論
While coding tends to be rigid, software engineering strives to be flexible. This flexibility is crucial because software engineering acts as the intermediary layer between code and the dynamic real world. In the real world, adaptability is key, and flexible software is more likely to align with the ever-changing demands, unlike rigid counterparts that may quickly become outdated.