Skip to content

What does “~[]” do?

I saw the following line of code here . I don’t understand, what does empty array script([]) do? Also, What is the purpose of ~[] in C? Answer The linked program seems to be logging its actions in some invented semi-formalized language. This logging “language” is not C. The string literal in…

advanced printf explanation in bash

I just found this programming segment in my son’s Bash file. I am quite a newbie and unable to understand the printf syntax. Can someone explain me the COMMENTED printf in the segment below?? Answer It’s is nothing but a busy/wait spinner and the lines commented do nothing but set a blue foregroun…

Error in malloc while trying to create a thread

Hi everyone i post only the core of the code which create probleam and which work with threads. As we can see foo function create new thread and reallocate memory to store the pthread_t. Then it try to create a new thread with pthread_create as NULL as attr and arg and as function pointer a pointer to foo2; N…

Kivy VM Buildozer Command Failed

I recently learned about kivy and tried to make a very simple little app just to test it. To try it out properly I used the kivy launcher but also felt compelled to try and compile it to an APK for my android phone. So I downloaded virtual box and installed linux mint on it. After installing things like java,