prompt.c (60787) | prompt.c (60814) |
---|---|
1/* $FreeBSD: head/contrib/less/prompt.c 60814 2000-05-23 07:34:27Z ps $ */ |
|
1/* 2 * Copyright (C) 1984-2000 Mark Nudelman 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information about less, or for information on how to 8 * contact the author, see the README file. --- 97 unchanged lines hidden (view full) --- 106 * Append a POSITION (as a decimal integer) to the end of the message. 107 */ 108 static void 109ap_pos(pos) 110 POSITION pos; 111{ 112 char buf[MAX_PRINT_POSITION]; 113 | 2/* 3 * Copyright (C) 1984-2000 Mark Nudelman 4 * 5 * You may distribute under the terms of either the GNU General Public 6 * License or the Less License, as specified in the README file. 7 * 8 * For more information about less, or for information on how to 9 * contact the author, see the README file. --- 97 unchanged lines hidden (view full) --- 107 * Append a POSITION (as a decimal integer) to the end of the message. 108 */ 109 static void 110ap_pos(pos) 111 POSITION pos; 112{ 113 char buf[MAX_PRINT_POSITION]; 114 |
114 sprintf(buf, PR_POSITION, pos); | 115 sprintf(buf, PR_POSITION, (long long)pos); |
115 ap_str(buf); 116} 117 118/* 119 * Append an integer to the end of the message. 120 */ 121 static void 122ap_int(n) --- 399 unchanged lines hidden --- | 116 ap_str(buf); 117} 118 119/* 120 * Append an integer to the end of the message. 121 */ 122 static void 123ap_int(n) --- 399 unchanged lines hidden --- |