2

Possible Duplicate:
What do the parentheses around function name mean?

As an exercise and a learning experience I decided to go through the source code of a C library called a better C library(linky) written by Paul Hsieh. I picked this project because the source looked very clean and organized, and seemed relatively short and easy to understand since it was dealing with strings. Also it was a good way to learn how portable code is written.

so I plan to post style/logic/c specific related question from this project in this post. My first question is what is a point of calling strlen like so:

(strlen)((char *) buff->data)

instead of

strlen((char *) buff->data)

Thank you,

Community
  • 1
  • 1
ArmenB
  • 2,125
  • 3
  • 23
  • 47

0 Answers0