Nils
*hope
Nils
But yeah that's a good question…
Nils
Well… Nope.
Nils
That must be the reason.
Anonymous
Why would you even allocate a single char on the heap, @tuxifan?
Nils
It wasn't waste of time, I learned a lot from it 😉
Nils
But yeah you are right.
Nils
Why would you even allocate a single char on the heap, @tuxifan?
I thought to make it available in the other scope.
Anonymous
I thought to make it available in the other scope.
What's wrong with just copying the char?
Nils
What's wrong with just copying the char?
That then I would not be able to modify the original
Anonymous
That then I would not be able to modify the original
You want to pass it to different function you're calling?
Nils
Anyways, I solved it…
Anonymous
char c; f(c); ?
Nils
You want to pass it to different function you're calling?
Into another thread, but it as it turned out that wasn't even another thread
Nils
That's also why it didn't work and just deadlocked
Anonymous
std::atomic<char>?
Nils
Aaand solved.
Nils
It works now, after having rewritten everything
labyrinth
I have seen some blogs saying that the poll implementation is based on linked list, but I could not find (in the man page) any mentioning of linked list from book or google, i am assuming that the blogs are implicitly referring to Java?
Alex
linux system call?
labyrinth
io mutiplexing in linux
labyrinth
yes
Alex
you should check linux kernel source
Alex
and I can`t understand why do you mention java
Alex
linux kernel is written using C language
Anonymous
Need tutorials for c and c++
Anonymous
/get cbook
Anonymous
/get cppbookguide
labyrinth
and I can`t understand why do you mention java
because when i search poll and linked list (my confusion), google always suggest java,utils.linkedlist.poll.. which is kinda irrelevant to what I need; i just checked the source code it is indeed linked list
Anonymous
hey all please suggest me fundamental api's to learn in i am a self taught programmer i have read books to learn c but before completing book i was introduced to basic understanding to api and nothing more was provided i search internet resources but didn't got any useful ple can anyone professional suggest me some fundamental api to learn
Anonymous
please don't take it as a randome message pleaseif you know somthing let me know i desperately need it
Alex
please don't take it as a randome message pleaseif you know somthing let me know i desperately need it
what kind of API do you need? I just can`t understand what are you looking for
Anonymous
i am in search of some api of windows in c that could let me build hardcore software for windows
Alex
what about googling for C winAPI ?
Anonymous
other than that i know this one
Alex
this one is enough
Anonymous
can you suggest me how could i go deep in this
Cengizhan
can you suggest me how could i go deep in this
What can we do for you? I am writing C/C++ almost 10 years and am still learning. So, google it, try it and learn it. There is no shortcut for those things.
Cengizhan
actually i am new in it so i wanted to know how you guys learn api if you are in a project
Read the docs! Thats how we learn, if I am using new library which I am not familiar.
Cengizhan
means google is the only way?
No, there is one secret way but only veterans know.
Anonymous
please help this newbie if you know it
Cengizhan
Do you have driver license?
Anonymous
no im 16 years old
Cengizhan
no im 16 years old
Ok, then. There is no way without practising or reading something to write code. You have to read a lot of things to learn.
Cengizhan
Same cases in life. Without practising you cannot drive a car.
Dima
some deep philosophy stuff is going on
Dima
Anonymous
Cengizhan
some deep philosophy stuff is going on
Oh it was not deep. I have also degree on philosophy btw. Wanna learn more dm me
𓆉 𝖙𝖚𝖗𝖙𝖑𝖊𝕶𝖎𝖓𝖌 ࿐
Hello guys... i want to learn building android apps so currently I'm learning C and after that which language should i learn?? Can you guys please tell me?? Some says Learn C then C++ --> java-->android studio and some says you can skip C++.. so what should i learn??
Nils
Is it possible to reassign stdin to an file in C?
Nils
solved
Nils
dup2
Thx...
Liam
Nooooo
He/She was asking about how to allocate a char on heap. No one knew the context, at that time.
Anonymous
Hello is there a gopher here who intergrates c and go(cgo) .I have a really quick question.
Vishal
I'm watching an online video presentation and not sure what this statement means: "Cfront, the first C++ compiler compiled to C, is usable anywhere C is." What exactly does "compiled to C" means? Is it different from "written in C"?
Vishal
Got it...so it's preprocessor converted the C++ code into C code and then the C compiler compiled the program
Artöm
Here condition depends on iteration variable, it cant be precomputed without iteration
Artöm
And if it didnt depend, compiler would most likely precompute it automatically
Artöm
This is bad af
Artöm
Because global variables should be avoided if possible
Dima
nice name
Dima
Anonymous
nice name
A nice reason to be banned
Foxner
How is that a plane?