Thread (27 messages) 27 messages, 9 authors, 2012-08-08

Re: [PATCH] ACPI: replace strlen("string") with sizeof("string") -1

flat view

From: Bernd Petrovitsch <hidden>
Date: 2012-08-07 13:44:56
Also in: linux-acpi, lkml

On Mon, 2012-08-06 at 22:57 +0000, Daniel Taylor wrote:
Silly question:  when did sizeof("string") get changed to be anything
other than the size of the pointer ("string" is, after all, an array
of characters)? 
It is since K&R times that way.
If you do not know the difference between a pointer and an array (and
these are vastly different), go learn something new about C.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@petrovitsch.priv.at
                     LUGA : http://www.luga.at
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help