[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] applets/usage_pod.c: Prefer fputs
From:       Ron Yorston <rmy () pobox ! com>
Date:       2021-02-18 21:21:08
Message-ID: 602eda44.0WhBuxrRHc+jj3Nq%rmy () pobox ! com
[Download RAW message or body]

Gray Wolf wrote:
>When printf has just single %s argument, it can be replaced with fputs,
>which is faster. One could hope that compiler would optimize that, but
>there is no reason not to use the fputs directly.

I did consider using fputs but thought it looked out of place:  all the
other output statements use printf.

Just a stylistic preference.

Ron
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic