License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdio.h>
int to_pad = width - len;
/* If not left justified, pad left */
- for(i = 0; !left_just && i < to_pad; ++i)
+ for (i = 0; !left_just && i < to_pad; ++i)
res += lc_appendable_chadd(app, pad);
/* Send the visible portion of the string to the output. */
res += lc_appendable_snadd(app, str, len);
/* If left justified, pad right. */
- for(i = 0; left_just && i < to_pad; ++i)
+ for (i = 0; left_just && i < to_pad; ++i)
res += lc_appendable_chadd(app, pad);
return res;
static int str_chadd(lc_appendable_t *obj, int ch)
{
- if(obj->limit - obj->written > 1) {
+ if (obj->limit - obj->written > 1) {
char *tgt = obj->obj;
tgt[obj->written++] = (char) ch;
return 1;