]> err.no Git - linux-2.6/commit
[PATCH] Implement kasprintf
authorJeremy Fitzhardinge <jeremy@xensource.com>
Sun, 25 Jun 2006 12:49:17 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:23 +0000 (10:01 -0700)
commite905914f96e11862b130dd229f73045dad9a34e8
tree0e7cff381970e2439de521c3d42ded8c49f69354
parentf796937a062c7aeb44cd0e75e1586c8543634a7d
[PATCH] Implement kasprintf

Implement kasprintf, a kernel version of asprintf.  This allocates the
memory required for the formatted string, including the trailing '\0'.
Returns NULL on allocation failure.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kernel.h
lib/vsprintf.c