<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >Basic C Library Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux Kernel API" HREF="book1.html"><LINK REL="PREVIOUS" TITLE="list_for_each_prev" HREF="r794.html"><LINK REL="NEXT" TITLE="simple_strtoll" HREF="r829.html"></HEAD ><BODY CLASS="CHAPTER" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux Kernel API</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="r794.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r829.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="CHAPTER" ><H1 ><A NAME="LIBC" ></A >Basic C Library Functions</H1 ><P > When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined by ANSI, and these deviations are noted in the text. </P ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN827" ></A >String Conversions</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="r829.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >simple_strtoll</SPAN ></SPAN ></A > -- convert a string to a signed long long </DT ><DT ><A HREF="r866.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >simple_strtoul</SPAN ></SPAN ></A > -- convert a string to an unsigned long </DT ><DT ><A HREF="r903.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >simple_strtol</SPAN ></SPAN ></A > -- convert a string to a signed long </DT ><DT ><A HREF="r940.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >simple_strtoull</SPAN ></SPAN ></A > -- convert a string to an unsigned long long </DT ><DT ><A HREF="r977.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >vsnprintf</SPAN ></SPAN ></A > -- Format a string and place it in a buffer </DT ><DT ><A HREF="r1024.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >snprintf</SPAN ></SPAN ></A > -- Format a string and place it in a buffer </DT ><DT ><A HREF="r1068.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >vsprintf</SPAN ></SPAN ></A > -- Format a string and place it in a buffer </DT ><DT ><A HREF="r1108.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >sprintf</SPAN ></SPAN ></A > -- Format a string and place it in a buffer </DT ><DT ><A HREF="r1145.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >vsscanf</SPAN ></SPAN ></A > -- Unformat a buffer into a list of arguments </DT ><DT ><A HREF="r1182.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >sscanf</SPAN ></SPAN ></A > -- Unformat a buffer into a list of arguments </DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="r794.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r829.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >list_for_each_prev</SPAN ></SPAN ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >simple_strtoll</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >