News for hackers. Stuff that matters.
Re:The Unreasonable Effectiveness of C by mschaef on Thursday January 10, 2013 @10:49AM (#5037510)
> a barely functional string type

There's a string type in C? All I see are character arrays and a few (poorly thought out) conventions for using them.

Re:The Unreasonable Effectiveness of C by runarb on Thursday January 10, 2013 @10:59AM (#5037593)
It may be cumbersome, but C has string handling: http://en.wikipedia.org/wiki/C_string_handling
Re:The Unreasonable Effectiveness of C by deelowe on Thursday January 10, 2013 @02:21PM (#5039102)
This is an article about the standard library. C has no built in string handling. As an example, there are embedded systems that do no have support for string types due to a lack of support for libraries that handle it, yet they are 100% compliant with the C spec.
Re:The Unreasonable Effectiveness of C by caf on Thursday January 10, 2013 @09:01PM (#5040946)
The C standard library is specified as part of the language specification document. The language defines two kinds of implementations: "hosted", which must support the entire standard library; and "freestanding", which do not.

Those embedded systems that do not support the full standard library are 100% compliant freestanding implementations, but are not compliant hosted implementations.

Re:The Unreasonable Effectiveness of C by tedunangst on Thursday January 10, 2013 @04:47PM (#5039993)
How you can be 100% compliant with the C spec by omitting strlen is a mystery to me.
Re:The Unreasonable Effectiveness of C by dionidium on Thursday January 10, 2013 @10:57AM (#5037576)
Re:The Unreasonable Effectiveness of C by pjmlp on Thursday January 10, 2013 @01:41PM (#5038841)
Forget to place that NULL in the right place and boom!