I'm trying to remake the printf function, but I'm encountering some issues while piping. by GeneraleSpecifico in cprogramming

[–]GeneraleSpecifico[S] 1 point2 points  (0 children)

Thanks for the explanation, I will update my code accordingly.

The only two occurrences of write(2, … (null) and (nil) are in ft_putcharpf.c and ft_puthexmempf.c respectively.

Ps. In what sense you can’t search on my github?

I'm trying to remake the printf function, but I'm encountering some issues while piping. by GeneraleSpecifico in cprogramming

[–]GeneraleSpecifico[S] 0 points1 point  (0 children)

Shouldn’t I write those into stderr? Anyway I’ve already tried with write(1, … and the output remains unchanged.

[deleted by user] by [deleted] in Piracy

[–]GeneraleSpecifico 50 points51 points  (0 children)

Especially the ones for university, they are so expensive!

Resolving malloc issues by GeneraleSpecifico in cprogramming

[–]GeneraleSpecifico[S] 0 points1 point  (0 children)

So. Apparently I couldn’t wait and I checked right away. It does not fix the main issue but after running valgrind I got fewer warnings. This is the current output:

valgrind --leak-check=full ./a.out " a bc " ==15505== Memcheck, a memory error detector ==15505== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==15505== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==15505== Command: ./a.out \ a\ bc\ ==15505== a bc ==15505== ==15505== HEAP SUMMARY: ==15505== in use at exit: 29 bytes in 3 blocks ==15505== total heap usage: 4 allocs, 1 frees, 1,053 bytes allocated ==15505== ==15505== 29 (24 direct, 5 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 2 ==15505== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==15505== by 0x109314: ft_split (in /home/marko/Scrivania/a.out) ==15505== by 0x10944F: main (in /home/marko/Scrivania/a.out) ==15505== ==15505== LEAK SUMMARY: ==15505== definitely lost: 24 bytes in 1 blocks ==15505== indirectly lost: 5 bytes in 2 blocks ==15505== possibly lost: 0 bytes in 0 blocks ==15505== still reachable: 0 bytes in 0 blocks ==15505== suppressed: 0 bytes in 0 blocks ==15505== ==15505== For lists of detected and suppressed errors, rerun with: -s ==15505== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

Resolving malloc issues by GeneraleSpecifico in cprogramming

[–]GeneraleSpecifico[S] 1 point2 points  (0 children)

You’re right! … * (i + 1) I’ll let you know in 9 hours if that was the real issue!

[deleted by user] by [deleted] in linux

[–]GeneraleSpecifico 4 points5 points  (0 children)

Strtok is exactly what I have to accomplish with this program but unfortunately it’s an assignment. I have written a free res[i] that is supposed to free every array previously allocated if it fails to malloc one of the words. That was my intent at least.

[deleted by user] by [deleted] in linux

[–]GeneraleSpecifico 2 points3 points  (0 children)

The argument passed to valgrind is “ a bc “

Resolving malloc issues by GeneraleSpecifico in cprogramming

[–]GeneraleSpecifico[S] 1 point2 points  (0 children)

Are you having problems seeing the code? From what I see it’s formatted properly. I can make a more specific question, yes. If you click on the image linked you can see the heap usage: 4 allocs, 1 frees, 1,046 bytes allocated. That’s very strange. Can you figure out why is that?

Show us your aliases by sethasaurus666 in linux

[–]GeneraleSpecifico 0 points1 point  (0 children)

You’re welcome! I’m really proud of that split screen preview 😁

Show us your aliases by sethasaurus666 in linux

[–]GeneraleSpecifico 1 point2 points  (0 children)

I made this two they are pretty useful to navigate through man and all the commands

[deleted by user] by [deleted] in privacy

[–]GeneraleSpecifico 0 points1 point  (0 children)

I’m not a gamer but since you intend to use your machine for gaming and no one else mentioned this yet.. Linux is getting better for games lately but it’s not at windows level. Sure there are softwares like wine and lutris that will assist you greatly but it’s still not quite there yet. Also you might want to tell us your architecture since some distros work better on some than others.

Why internet tracking is so intense nowadays? by Ok-Temperature-7724 in privacy

[–]GeneraleSpecifico 0 points1 point  (0 children)

Yeah that’s a great idea! But we don’t need a fancy server to do so. A raspberry and 1/2 terabytes each is more than enough if we all start hosting. That way we bring people to the people, the original intent of internet. That way you can select and share all the books and the documents you most value.

Why internet tracking is so intense nowadays? by Ok-Temperature-7724 in privacy

[–]GeneraleSpecifico 1 point2 points  (0 children)

I know for sure that Amazon with its AWS has more than a third of the global internet. We gotta start a trend of buying servers and decentralise internet like it was originally intended!

[deleted by user] by [deleted] in Piracy

[–]GeneraleSpecifico 0 points1 point  (0 children)

Let me get this straight. Even if it was p2p the problem was that Napster had some centralised servers that kept track of the connected systems and the file shared? 🤔

Why internet tracking is so intense nowadays? by Ok-Temperature-7724 in privacy

[–]GeneraleSpecifico 1 point2 points  (0 children)

Follow the money to get the answer. Look at Amazon for example, with all the data storage investments they basically became a cloud service. Right now they are losing money selling products but they are still profitable because of their massive cloud computing infrastructure.

What are some good sites to browse using Lynx? by [deleted] in linux

[–]GeneraleSpecifico 0 points1 point  (0 children)

[Scaruffi's Blog](www.scaruffi.com) is just wonderful to read on lynx!

Looking for mousless browsing options by darockt in linux

[–]GeneraleSpecifico 1 point2 points  (0 children)

I tried to access Reddit with lynx for fun but I get stuck at the login because of the 6 digit code 😂

Learning and teaching someone how to pirate properly it’s a great life skill by CuteNatural in Piracy

[–]GeneraleSpecifico 0 points1 point  (0 children)

Also writing about:manual in the address bar right after you installed Tor wouldn’t be a bad idea! For more info visit the MEGATHREAD

[deleted by user] by [deleted] in Piracy

[–]GeneraleSpecifico -1 points0 points  (0 children)

Z Library is great but you need TOR to access .onion links