On Thu, Feb 10, 2011 at 3:00 PM, Eduardo Silva <[email protected]> wrote: > On Thu, 2011-02-10 at 14:52 +0100, Olaf van der Spek wrote: >> On Thu, Feb 10, 2011 at 2:37 PM, Eduardo Silva <[email protected]> >> wrote: >> > string_copy seems pointless, it's kinda equivalent to strcpy. >> > >> > Yeah, but if we are thinking into write some wrappers let's create a couple >> > for the major string manipulation used... >> >> A wrapper should have a benefit, your string_copy doesn't have any. > > It have it, take this example: > > char *a; > a = malloc(1024); > strcpy(a, NULL); > > at least with the wrapper you will get a notice about what's going > on...
The debugger shows you what's going on without wrapper. -- Olaf -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
