Anmol
12a3
V01D
Okay, thanks.
MᏫᎻᎯᎷᎷᎬᎠ
Okay, thanks.
You're welcome :)
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
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.
MᏫᎻᎯᎷᎷᎬᎠ
You cannot use those headere
What command do you use to compile?! Gcc or G++?
MᏫᎻᎯᎷᎷᎬᎠ
It's how os development works.
Well yes When developing for some metal-platform you cannot use some of the language
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
Anmol
int res {0}; should work and is recommended way to initialise in c++11 and later
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'
dj
guys free(arrayname); giving error on C
dj
why it occur
Anonymous
We cannot know
Dima
give us more details
Anonymous
why it occur
There's a mistake in your code
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
dj
same code
Anonymous
Thank you!
dj
So you should write a code that compiles
if i remove free() it works fine
dj
someone said dont use free if variable was created like int c;
Dima
someone said dont use free if variable was created like int c;
yeah, learn more basics read about stack and heap
dj
current gone bro :)
dj
So guys i cant free statically allocated memory by anyway ?
Anonymous
I'm not a bytes expert
Vlad
So guys i cant free statically allocated memory by anyway ?
Why would you do that? Do you know how stack works?
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")
Vlad
It appears that may call JNI functions only in the synchronized functions
Till
code would be: if (PBYTE + DWORD) == "String here" { printf("success!"); } which gives error: '==': no conversion from 'const char *' to 'PBYTE'
cpp code: #define PBYTE std::string("String ") #define DWORD "here" if (PBYTE + DWORD == "String here") { printf("success!"); } output: success!
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?