help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why I can't use `info' in emacs?


From: Hadron Quark
Subject: Re: Why I can't use `info' in emacs?
Date: Fri, 15 Dec 2006 15:25:55 +0100
User-agent: Gnus

"Robert Thorpe" <rthorpe@realworldtech.com> writes:

> It's not documented by Emacs, it's documented in the Info docs that
> come with GLibc.

I installed the glibc info package on my ubuntu system. restarted
emacs. Here are some outputs from the info pages for glibc and the man
pages for printf:

(a) man page using manual-entry(current-word):

,----
| PRINTF(3)                                      Linux Programmer’s Manual      
                               PRINTF(3)
| 
| NAME
|        printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, 
vsnprintf - formatted output conversion
| 
| SYNOPSIS
|        #include <stdio.h>
| 
|        int printf(const char *format, ...);
|        int fprintf(FILE *stream, const char *format, ...);
|        int sprintf(char *str, const char *format, ...);
|        int snprintf(char *str, size_t size, const char *format, ...);
| 
|        #include <stdarg.h>
| 
|        int vprintf(const char *format, va_list ap);
|        int vfprintf(FILE *stream, const char *format, va_list ap);
|        int vsprintf(char *str, const char *format, va_list ap);
|        int vsnprintf(char *str, size_t size, const char *format, va_list ap);
| 
| DESCRIPTION
|        The  functions  in  the  printf() family produce output according to a 
format as described below. The functions
|        printf() and vprintf() write output to stdout, the standard output 
stream; fprintf() and vfprintf() write  out‐
|        put to the given output stream; sprintf(), snprintf(), vsprintf() and 
vsnprintf() write to the character string
|        str.
| 
`----

(b) info entry: 

,----
| 12.12.7 Formatted Output Functions
| ----------------------------------
| 
| This section describes how to call `printf' and related functions.
| Prototypes for these functions are in the header file `stdio.h'.
| Because these functions take a variable number of arguments, you _must_
| declare prototypes for them before using them.  Of course, the easiest
| way to make sure you have all the right prototypes is to just include
| `stdio.h'.  
| 
|  -- Function: int printf (const char *TEMPLATE, ...)
|      The `printf' function prints the optional arguments under the
|      control of the template string TEMPLATE to the stream `stdout'.
|      It returns the number of characters printed, or a negative value
|      if there was an output error.
| 
`----


Surely the man pages are superior in this instance for a programmer?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]