Telegramy
Articles
About
« Rev
@programminginc
777
Fwd »
Ariana
i am dont worry mdr
BinaryByter
i am dont worry mdr
good 😌
Badugar
Could be a solution.
Unsigned int to make it more "safe"
BinaryByter
xDD
Ariana
Unsigned int to make it more "safe"
tf.-.
BinaryByter
Unsigned int to make it more "safe"
^^^^
BinaryByter
tf.-.
unsigned int has advantages. 1) it CANNOT be negative 2) it indicates that negative numbers are not allowed
Ariana
unsigned int has advantages. 1) it CANNOT be negative 2) it indicates that negative numbers are not allowed
its a boolean.-.
Ariana
just use a bit.-.
BinaryByter
unsigned bool?
BinaryByter
dafaq?
BinaryByter
just use a bit.-.
bool are usually mapped as 8 bits
Ariana
bool are usually mapped as 8 bits
yeah sadly
BinaryByter
yeah sadly
memory is more available than speed
Ariana
computer algebra system XD
BinaryByter
man, having your bools be mapped as one bit would be horrible
Rushikesh
/hii
Rushikesh
/hii
Rushikesh
/hii
Ariana
man, having your bools be mapped as one bit would be horrible
:>
Rushikesh
/hii
Rushikesh
/hii
Ariana
/spa m
Rushikesh
/hii
BinaryByter
:>
STOP BEING AUTISTIC PLEASE
Rushikesh
/hii
BinaryByter
xDD
klimi
I am an admin
Sure you are
Dima
Sure you are
who are you even
Dima
oh
klimi
who are you even
Your dad
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
🙄
Dima
is that a lame advertisement?
Ariana
*non-functional
Dima
lol.
Dima
so what you are doing is also called advertisement
Dima
or trying to do lol
Ariana
subscribe to my github! Where you can learn to write sh*tty code
BinaryByter
subscribe to my github! github.com/wittmaxi
BinaryByter
!!!!!!
BinaryByter
NOW
Anonymous
Yes I can
Anonymous
subscribe to my github! Where you can learn to write sh*tty code
Ok
Ludovic 'Archivist'
subscribe to my github! github.com/wittmaxi
You send your github, yet your best project here is gifOS
Mihail
subscribe to my github! github.com/wittmaxi
I already have since a long time ago
Mihail
Your turn to subscribe
Mihail
🏃🏃
BinaryByter
You send your github, yet your best project here is gifOS
gifOs? why is it the best project?
BinaryByter
Your turn to subscribe
xD
olli
this is not a place to trade subscriptions or promote your repos. You aren't allowed to promote your YT channels either
Anonymous
The next XXXTentacion song xd
Ariana
XD
Ariana
i pity u ppl tbh
Anonymous
Bhanu
/sendgirl
j
using qsort with an array of dt structs produces the following output
Ariana
dt structs
Ariana
wot
j
j
i guess there's an overflow
Ariana
Yup definitely
j
and the reason is in my comparison method
Ariana
Or some pointer pointing to a invalid location
j
int cmp_dates(const void *d1, const void *d2){ struct tm date_1 = *(const struct tm *)d1; struct tm date_2 = *(const struct tm *)d2; double d = difftime(mktime(&date_1), mktime(&date_2)); return (d > 0)-(d < 0); }
Ariana
(d>0)-(d<0)?
j
pasting the whole code in gist
Ariana
Btw qsort wouldnt overflow
Ariana
ah ok
Ariana
Btw qsort wouldnt overflow
as long as you passed the len properly, it will not overflow
j
https://gist.github.com/rexto/37f1fd5da97b5017eb75c6ced14f09eb
Ariana
Could you print the pointer location out instead?
j
what pointer location
j
?
Ariana
%p
Ariana
It prints where the pointer is pointing to
Ariana
``` printf("%p\n", (void *) &a); ``` smt like this
j
why would i do that?
Ariana
To just check if its just qsort sorting elements outside the array or something else
j
To just check if its just qsort sorting elements outside the array or something else
i thin its that
j
not every field of my array is filled
« Rev
@programminginc
777
Fwd »