FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 02-02-2011, 09:42 AM
Petr Tesarik
 
Default Optimize mkstring()

A few simple changes here:

- call memset() instead of repeatedly calling strcat() on the
target string
- use shift_string_right() for CENTER (same is already used for
right RJUST)
- use memset() in shift_string_right()
- remove the (no longer needed) local buffer, which makes it
possible to call mkstring() on an arbitrarily long string

Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 09:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org