Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 334
 2012 Microchip Technology Inc.
FTOA 
Synopsis
#include <stdlib.h>
char * ftoa (float f, int * status)
Description
The function 
ftoa
 converts the contents of 
f
 into a string which is stored into a buffer 
which is then return.
Example
#include <stdlib.h>
#include <stdio.h>
void
main (void)
{
    char * buf;
    float input = 12.34;
    int status;
    buf = ftoa(input, &status);
    printf("The buffer holds %s\n", buf);
}
See Also
strtol()
, itoa(), utoa(), ultoa()
Return Value
This routine returns a reference to the buffer into which the result is written.
GETCH 
Synopsis
#include <conio.h>
 
char getch (void)
Description
The 
getch()
 function is provided as an empty stub which can be completed as each 
project requires. Typically this function will read one byte of data from a peripheral that 
is associated with stdin, and return this value.
Example
#include <conio.h>
char result;
void
main (void)
{
       result = getch();
}
See Also
getche()
, getchar()