MᏫᎻᎯᎷᎷᎬᎠ
Anmol
12a3
Anmol
V01D
Okay, thanks.
V01D
Thanks alot you two, I am really glad I understand this - now I don't feel guilty importing this into my code :).
V01D
I can't use stdlib, I am developing a kernel from scratch for education and fun.
V01D
Otherwise I wouldn't have bothered
MᏫᎻᎯᎷᎷᎬᎠ
V01D
C
MᏫᎻᎯᎷᎷᎬᎠ
C
What does the error message say?!
No file found?
V01D
What do you mean
V01D
Oh i get it
V01D
You cannot use those headere
V01D
It's how os development works.
Anmol
This is wrong on various levels
Roger
Hello guys
Roger
Hello I’m new with coding in C
Do you know of some interactive groups I can join whereby I may also test myself with some work?
Roger
Or anyone here to assist
Anmol
res(0) will not work for assignment i think
Roger
I’m learning slowly but surely
Anmol
It doesn't work in c++ either imo
V01D
Anmol
int res {0}; should work and is recommended way to initialise in c++11 and later
Anonymous
Dima
Anonymous
Because function parameter type should be const char*
Anmol
He uses C
I clarified in my message that it's for c++
Anmol
Yep. Wanted to say that a for loop should be used in that function but avoided as function itself was correct and it would be technically an expensive operation to get string length
Ajay
Let's say I'm creating cpp snippet in VSCode but the problem is
"code": {
"prefix": "#",
"body": [
"#define nl \"\\n\" "
],
"description": "code"
}
Above creates the snippet #define nl "\n"
I want to do #define nl '\n' . Using \' instead of \" isn't helping.
Alex
not sure, what you are doing. try '\\n'
Ajay
dj
guys free(arrayname); giving error on C
Anonymous
dj
why it occur
Anonymous
We cannot know
Dima
give us more details
dj
i dont know after use of an array when i use
free(areayname);
it gives error while compiling
dj
is nt free supposed to use like that
dj
i could have sent link
i used it bu reffering tutorialspot and all
Anonymous
dj
same code
Anonymous
Thank you!
dj
dj
someone said dont use free if variable was created like
int c;
Dima
dj
dj
current gone bro :)
dj
So guys i cant free
statically allocated memory by anyway ?
Anonymous
I'm not a bytes expert
Vlad
Vlad
Then call it from the main thread instead. API may not be thread safe.
Raj Kumar
Hi all, can you suggest me how can I expert in logical programming
Shivang
/ get cbook
Shivang
/ get cbook
Shivang
get cbook
piggyho
hello,
perhaps you don't need to send so many emoji pics?
Shivang
/ get cbook
Anonymous
hey, im trying to convert a PBYTE + DWORD value to a string so that i can compare it with if to check if the string contains something certain
what i dont get is how i would convert the value to a string and then compare it to something. like what printf("%s\n", PBYTE + DWORD); does with it's "%s" function.
any help would be appreciated, thanks.
Anonymous
code would be:
if (PBYTE + DWORD) == "String here"
{
printf("success!");
}
which gives error:
'==': no conversion from 'const char *' to 'PBYTE'
Anonymous
as stated, printf("%s\n", PBYTE + DWORD); works fine because printf is just printing the value as a string using the %s function
Anonymous
this doesnt seem to do the trick either:
if (std::to_string(*PBYTE + DWORD) == "Something")
Monday Morning
Vlad
Till
Anonymous
Vlad
It appears that may call JNI functions only in the synchronized functions
Till
Till
Vlad
Till
Oh, no, I can't recognize text on this photo, so I can't help you
Vlad
Till
Is it c++???
Till
There are java virtual machine, shit
Vlad
Use locks luke
Тимофей
Hi monkeys
Till
Where code?