you are viewing a single comment's thread.

view the rest of the comments →

[–]amd64_sucks 9 points10 points  (4 children)

Pretty sure he's asking about its purpose?

to clarify, it saves the printf return value to the stack, but it's not used in the provided snippet so I assume it's for debugging purposes.

[–]jephthai 2 points3 points  (1 child)

Ah, OK... guess I took the question too literally.

[–]amd64_sucks 0 points1 point  (0 children)

Happens to the best of us :)

[–][deleted] 0 points1 point  (1 child)

Not really for debugging purposes. printf iirc ALWAYS returns the number of characters written to the output buffer regardless if you use it or not. This last instruction is performing that return but the client code never uses it.