Cross Code
43 subscribers
233 photos
28 videos
1 file
125 links
Everyone has a channel now why not me ig.
Expect dev and gaming stuff.
In-joy

Discussions here - https://t.me/+CkXl8tSd-Ds0YmVk
Download Telegram
Really hate windows updates
Today I found out about a function that I thought would now exit in the C standard library.

Basically I wanted something that would check if a string is a valid double and went and made something with a loop that works if u give it the right input if uk what am saying 🤯. Well that kinda did not set well with me so I made a quick search on gpt and BAM we got something that is in the standard lib that will work.

The function in question is strtod. What it does is simple, it just converts an array of chars to a double. Might look not impressive for most but for a guy that thought, "low level programming, HARD. low level programming has nothing 🐵", this was quite a surprise.

I can't tell u how it converts it under the hood just yet but what I can tell u is how this helped me to check if a string is a valid double or not. So this is the function signature double strtod(const char *str, char **str_end);, well str is the input string and str_end is a pointer to a pointer that stores the address of the first char in the string that was not converted.

So now by checking what the str_end is pointing to, we can check if a string is a valid double or now🤪.
Please open Telegram to view this post
VIEW IN TELEGRAM
Also am am very alive.👍
Please open Telegram to view this post
VIEW IN TELEGRAM
🎉1
Man this AWS outage got me good bro. I spent 2hrs trying to figure out what when wrong with the code I wrote till I finally found out resend we down. Man I almost gave up and was gonna switch to another email api till I finally knew.
😭1
Just me?
c-calc is a calculator I made for my-self using C. I mostly started the project cause I had a power outage and made it as a joke but after realizing I don't have a real calculator on my PC ( arch btw) and decided to make some thing that I would use as a primary calculator.
It can accept any mathematical expression which only contains number (e.g ( 2 + 2 ) *6.9 +2+ 22-(420- 69)+6+ 7 ) and returns a correct result. If u use wl-clipboard it will copy the result to the clipboard.

here is the github repo: https://github.com/kidusm001/c-calc
👏5
Hmm. How u all been doing?
Been a month or something.
Cross Code
Took me long enough
fucking finally bros
🎉1
Got Archmage and we beat Tottenham. What a great day.
gn
Tagged unions are pretty cool. If u make a programming language anytime soon please include some sort of way to use tagged unions.
Can never forget the day that our Unix Lab instructor told us to execute touch girl command, and went on a rant on how doing an SA is bad for society🐈
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣3
Cross Code
Had to hit top 10 bro
I am finally in the global Leaderboard after along while
🔥2
This might be one of the worst takes I have seen on X.
Finally got some new glasses
Cross Code
Finally got some new glasses
I can see thing fullHD now. I knew my eye site was bad but never thought it was this bad.
Forwarded from Solo codes (Brook Solomon)
Introducing WebMTP

So the worst thing about Macs , is that you cant just plug in your android and just access the file storage directly how you do with windows, you need to install third party software and set it up just to have this basic functionality

which is why i made WebMTP, connect and directly access your phone storage from the web on MacOs without any installs

and it is also open source so would appreciate it if you drop a star on the repo


Github