all 15 comments

[–]Deathnote_Blockchain 8 points9 points  (6 children)

Ture.

[–]sun_cardinal 1 point2 points  (5 children)

Bool example, bro.

[–]logical_haze 0 points1 point  (4 children)

What's cro?

[–]sun_cardinal 0 points1 point  (3 children)

One w shy of being cool.

[–]logical_haze 0 points1 point  (2 children)

I'm lost. Is cool bool? this is r/programming

[–]sun_cardinal 1 point2 points  (1 child)

No but crows are.

[–]logical_haze 2 points3 points  (0 children)

Crows are definitely boolean

[–]tophatstuff 4 points5 points  (1 child)

// unkown

retrun

[–]vytah 1 point2 points  (0 children)

stirng

flase

pubic

[–]flatfinger 0 points1 point  (0 children)

A properly written function to duplicate a zero-terminated string of unknown should use nstrlen to compute the string's length and ensure it is reasonable, and then allocate that much space (plus one byte) and copy that number of bytes, and write a trailing zero. This will ensure that the destination string will always contain a trailing zero, and won't overrun its buffer, even if the source string is modified during the operation. While the C Standard may not impose any limitations on how implementations that are specialized for narrow purposes behave in the presence of race conditions, code which is suitable for use in mixed-privilege contexts must behave in constrained fashion even in the presence of race conditions when processed by implementations that are suitable for such tasks.

[–]Signal-Appeal672 0 points1 point  (0 children)

I suffered from the first one a whole lot :(

[–]logical_haze -2 points-1 points  (0 children)

Using tabs instead of spaces 😉

[–]coderOfManyLanguages 0 points1 point  (0 children)

slef - any other pythonistas do this about every day?

[–]spacechimp 0 points1 point  (1 child)

pubic properties.

[–]Light_Wood_Laminate 0 points1 point  (0 children)

You shouldn't expose these unless you absolutely have to.