X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=smime.c;h=5a8f7e76263c488c9fa18246aaf180c0deb11133;hp=a5d2fbc90e452d08ed07e0d02af0498b0f284879;hb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13;hpb=207c707f2c7073a6fbd14124197a559d9d471f65 diff --git a/smime.c b/smime.c index a5d2fbc..5a8f7e7 100644 --- a/smime.c +++ b/smime.c @@ -83,10 +83,19 @@ static char SmimeIntermediateToUse[_POSIX_PATH_MAX]; /* - * Queries and passphrase handling. + * Create a format string to be used with scanf. + * To use it, write, for instance, MUTT_FORMAT(HUGE_STRING). + * + * See K&R 2nd ed, p. 231 for an explanation. */ +#define _MUTT_FORMAT_2(a,b) "%" a b +#define _MUTT_FORMAT_1(a, b) _MUTT_FORMAT_2(#a, b) +#define MUTT_FORMAT(a) _MUTT_FORMAT_1(a, "s") +/* + * Queries and passphrase handling. + */ /* these are copies from pgp.c */