[ home ] [ q / soy / qa / r / nate ] [ a / health / incel / int / mtv / pol / psy / raid / sci ] [ overboard ] [ rules ] [ bans ] [ wiki ] [ booru ] [ archive ] [ merch ] [ donate ]

/sci/ - Soyence and Technology

Name
Options
Comment
File
Embed
Password (For file deletion.)

File: 1691190683856.png (141.81 KB, 800x789, 1690667906682.png)ImgOps

 13716

How do I write safe C?

 13717

1. alloc
2. free
3. ??
4. profit

 13718

>>13716
by installing rust

 13719

>>13718
baiterald

 13720

>>13717
malloc or alloc

 13721

>>13719
rust is the safe version of c THOUGH

 13722

>>13720
NtAllocateVirtualMemory

 13724

>>13720
calloc

 13727

>safe
>C
you can't, as C just generats assembly code and it might not make it perfect
you need to write assembly code on your own so you can make sure every bit (lol) is perfect
or you can write your C code, run "cc -S MyLittlePony.c", and edit the .s file that was generated

 13729

File: 1691200249390.png (970.56 KB, 626x528, mel.png)ImgOps

>>13727
also you can just write your C programs and stop being a security masturbating monkey
as a wise man once said: "Once a monkey starts masturbating it cannot stop."
once you start going through the safe lake, you are going to go deeper and deeper and until one day you might try rust, or even worse, use OpenBSD
take pride in writing unsafe C application like real men do, or write your perfect applications in assembly or even better, pure hexedicmal numbers.

 13731

>>13727
>>13729
why do you faggots think you're smarter than the compiler developed by thousands of people for over 40 years

 13732

File: 1691200569210.png (654.52 KB, 887x858, ClipboardImage.png)ImgOps


 13736

File: 1691201121477.png (180.15 KB, 800x789, heartscience1.png)ImgOps

>>13731
>JUST TRUST THE HECKIN' COMPILER SOYANCE, THE SOYENTISTS KNOW WHAT THEY ARE DOING
>>13732
>HAVING CONTROL OVER YOUR PROGRAMS IS LE BAD, YOU WILL NOT QUESTION THIS

 13737

File: 1691201475917.png (18.31 KB, 307x156, 1675781759514.png)ImgOps

>>13727
YOU'LL BE FUCKING EXECUTED

 13738

File: 1691201963525.png (59.69 KB, 353x185, barney.png)ImgOps


 13740

>>13716
(m)alloc
gcc -Wall
fix your shit if it warns you

 13790

you write C# instead

 13813

>>13716
Don't be retarded



[Return][Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ home ] [ q / soy / qa / r / nate ] [ a / health / incel / int / mtv / pol / psy / raid / sci ] [ overboard ] [ rules ] [ bans ] [ wiki ] [ booru ] [ archive ] [ merch ] [ donate ]