﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Eping -----C++技术博客 </title><link>http://www.cppblog.com/eping/</link><description>专注C++</description><language>zh-cn</language><lastBuildDate>Fri, 17 Apr 2026 08:57:14 GMT</lastBuildDate><pubDate>Fri, 17 Apr 2026 08:57:14 GMT</pubDate><ttl>60</ttl><item><title>fwrite</title><link>http://www.cppblog.com/eping/archive/2010/12/27/137559.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Mon, 27 Dec 2010 05:53:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/12/27/137559.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/137559.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/12/27/137559.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/137559.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/137559.html</trackback:ping><description><![CDATA[<h1 style="font-size: 24px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: verdana, arial, helvetica, sans-serif; "><span  style="color: rgb(0, 0, 0); font-weight: normal; font-size: 12px; "><div class="auto" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div class="docsubtop" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div class="prototype" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: courier, monospace; color: rgb(0, 128, 0); "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">size_t fwrite ( const void * ptr, size_t size, size_t count, FILE * stream );</pre></div></div><p><strong>Write block of data to stream</strong></p></div><div id="content" style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Writes an array of&nbsp;<em>count</em>&nbsp;elements, each one with a size of&nbsp;<em>size</em>&nbsp;bytes, from the block of memory pointed by&nbsp;<em>ptr</em>&nbsp;to the current position in the&nbsp;<em>stream</em>.<br>The postion indicator of the stream is advanced by the total number of bytes written.<br>The total amount of bytes written is (size * count).<br><br><h3 style="font-size: 18px; ">Parameters</h3><dl><dt>ptr</dt><dd>Pointer to the array of elements to be written.</dd><dt>size</dt><dd>Size in bytes of each element to be written.</dd><dt>count</dt><dd>Number of elements, each one with a size of&nbsp;<em>size</em>&nbsp;bytes.</dd><dt>stream</dt><dd>Pointer to a&nbsp;<a href="http://www.cplusplus.com/FILE" style="text-decoration: none; color: rgb(0, 0, 112); ">FILE</a>&nbsp;object that specifies an output stream.</dd></dl><br><br><h3 style="font-size: 18px; ">Return Value</h3>The total number of elements successfully written is returned as a&nbsp;<a href="http://www.cplusplus.com/size_t" style="text-decoration: none; color: rgb(0, 0, 112); ">size_t</a>&nbsp;object, which is an integral data type.<br>If this number differs from the&nbsp;<em>count</em>&nbsp;parameter, it indicates an error.<br><br><h3 style="font-size: 18px; ">Example</h3><div class="auto" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><table class="snippet" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; "><tbody><tr><td class="rownum" style="color: rgb(160, 160, 160); text-align: right; vertical-align: top; min-width: 20px; "><tt>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br></tt></td><td class="source" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(239, 239, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(192, 192, 208); border-right-color: rgb(192, 192, 208); border-bottom-color: rgb(192, 192, 208); border-left-color: rgb(192, 192, 208); vertical-align: top; background-position: initial initial; background-repeat: initial initial; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><code><cite style="font-style: normal; color: rgb(0, 112, 0); ">/* fwrite example : write buffer */</cite>
<dfn style="font-style: normal; color: rgb(80, 0, 112); ">#include &lt;stdio.h&gt;</dfn>

<var style="font-style: normal; color: rgb(0, 0, 176); ">int</var> main ()
{
  FILE * pFile;
  <var style="font-style: normal; color: rgb(0, 0, 176); ">char</var> buffer[] = { <kbd style="font-style: normal; color: rgb(96, 0, 48); ">'x'</kbd> , <kbd style="font-style: normal; color: rgb(96, 0, 48); ">'y'</kbd> , <kbd style="font-style: normal; color: rgb(96, 0, 48); ">'z'</kbd> };
  pFile = fopen ( <kbd style="font-style: normal; color: rgb(96, 0, 48); ">"myfile.bin"</kbd> , <kbd style="font-style: normal; color: rgb(96, 0, 48); ">"wb"</kbd> );
  fwrite (buffer , 1 , <var style="font-style: normal; color: rgb(0, 0, 176); ">sizeof</var>(buffer) , pFile );
  fclose (pFile);
  <var style="font-style: normal; color: rgb(0, 0, 176); ">return</var> 0;
}</code></pre></td></tr></tbody></table></div><br><br>A file called&nbsp;<tt>myfile.bin</tt>&nbsp;is created and the content of the buffer is stored into it. For simplicity, the buffer contains&nbsp;<tt>char</tt>&nbsp;elements but it can contain any other type.<br><tt>sizeof(buffer)</tt>&nbsp;is the length of the array in bytes (in this case it is three, because the array has three elements of one byte each).</div></span></h1>
<img src ="http://www.cppblog.com/eping/aggbug/137559.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-12-27 13:53 <a href="http://www.cppblog.com/eping/archive/2010/12/27/137559.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>fprintf</title><link>http://www.cppblog.com/eping/archive/2010/12/27/137550.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Mon, 27 Dec 2010 04:16:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/12/27/137550.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/137550.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/12/27/137550.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/137550.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/137550.html</trackback:ping><description><![CDATA[<div class="auto" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; "><div class="docsubtop" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div class="prototype" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: courier, monospace; color: rgb(0, 128, 0); "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">int fprintf ( FILE * stream, const char * format, ... );</pre></div></div><p><strong>Write formatted output to stream</strong></p></div><div id="content" style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; ">Writes to the specified&nbsp;<em>stream</em>&nbsp;a sequence of data formatted as the&nbsp;<em>format</em>&nbsp;argument specifies. After the&nbsp;<em>format</em>&nbsp;parameter, the function expects at least as many additional arguments as specified in&nbsp;<em>format</em>.<br><br><h3 style="font-size: 18px; ">Parameters</h3><dl><dt>stream</dt><dd>Pointer to a&nbsp;<a href="http://www.cplusplus.com/FILE" style="text-decoration: none; color: rgb(0, 0, 112); ">FILE</a>&nbsp;object that identifies the stream.</dd><dt>format</dt><dd>C string that contains the text to be written to the stream.<br>It can optionally contain embedded format tags that are replaced by the values specified in subsequent additional arguments and formatted as requested.<br>The number of arguments following the&nbsp;<em>format</em>&nbsp;parameters should at least be as much as the number of format tags.<br>The format tags follow this prototype:<br><br><tt>%[flags][width][.precision][length]specifier</tt><br><br>Where&nbsp;<em>specifier</em>&nbsp;is the most significant one and defines the type and the interpretation of the value of the coresponding argument:<br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; "><em>specifier</em></th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">Output</th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">Example</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>c</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Character</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>a</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>d</tt>&nbsp;or&nbsp;<tt>i</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Signed decimal integer</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>392</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>e</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Scientific notation (mantise/exponent) using&nbsp;<tt>e</tt>&nbsp;character</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>3.9265e+2</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>E</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Scientific notation (mantise/exponent) using&nbsp;<tt>E</tt>&nbsp;character</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>3.9265E+2</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>f</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Decimal floating point</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>392.65</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>g</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Use the shorter of&nbsp;<tt>%e</tt>&nbsp;or&nbsp;<tt>%f</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>392.65</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>G</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Use the shorter of&nbsp;<tt>%E</tt>&nbsp;or&nbsp;<tt>%f</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>392.65</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>o</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Signed octal</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>610</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>s</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">String of characters</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>sample</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>u</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Unsigned decimal integer</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>7235</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>x</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Unsigned hexadecimal integer</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>7fa</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>X</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Unsigned hexadecimal integer (capital letters)</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>7FA</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>p</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Pointer address</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>B800:0000</tt></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>n</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Nothing printed. The argument must be a pointer to a signed&nbsp;<tt>int</tt>, where the number of characters written so far is stored.</td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>%</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">A&nbsp;<tt>%</tt>&nbsp;followed by another&nbsp;<tt>%</tt>&nbsp;character will write&nbsp;<tt>%</tt>&nbsp;to the stream.</td></tr></tbody></table><br><br>The tag can also contain&nbsp;<em>flags</em>,&nbsp;<em>width</em>,&nbsp;<em>.precision</em>&nbsp;and&nbsp;<em>modifiers</em>&nbsp;sub-specifiers, which are optional and follow these specifications:<br><br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; "><em>flags</em></th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">description</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>-</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Left-justify within the given field width; Right justification is the default (see&nbsp;<em>width</em>&nbsp;sub-specifier).</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>+</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Forces to preceed the result with a plus or minus sign (<tt>+</tt>&nbsp;or&nbsp;<tt>-</tt>) even for positive numbers. By default, only negative numbers are preceded with a&nbsp;<tt>-</tt>&nbsp;sign.</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><em>(space)</em></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">If no sign is going to be written, a blank space is inserted before the value.</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>#</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Used with&nbsp;<tt>o</tt>,&nbsp;<tt>x</tt>&nbsp;or&nbsp;<tt>X</tt>&nbsp;specifiers the value is preceeded with&nbsp;<tt>0</tt>,&nbsp;<tt>0x</tt>&nbsp;or&nbsp;<tt>0X</tt>&nbsp;respectively for values different than zero.<br>Used with&nbsp;<tt>e</tt>,&nbsp;<tt>E</tt>&nbsp;and&nbsp;<tt>f</tt>, it forces the written output to contain a decimal point even if no digits would follow. By default, if no digits follow, no decimal point is written.<br>Used with&nbsp;<tt>g</tt>&nbsp;or&nbsp;<tt>G</tt>&nbsp;the result is the same as with&nbsp;<tt>e</tt>&nbsp;or&nbsp;<tt>E</tt>&nbsp;but trailing zeros are not removed.</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>0</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Left-pads the number with zeroes (<tt>0</tt>) instead of spaces, where padding is specified (see&nbsp;<em>width</em>&nbsp;sub-specifier).</td></tr></tbody></table><br><br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; "><em>width</em></th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">description</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><em>(number)</em></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">Minimum number of characters to be printed. If the value to be printed is shorter than this number, the result is padded with blank spaces. The value is not truncated even if the result is larger.</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>*</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">The&nbsp;<em>width</em>&nbsp;is not specified in the&nbsp;<em>format</em>&nbsp;string, but as an additional integer value argument preceding the argument that has to be formatted.</td></tr></tbody></table><br><br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; "><em>.precision</em></th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">description</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>.</tt><em>number</em></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">For integer specifiers (<tt>d</tt>,&nbsp;<tt>i</tt>,&nbsp;<tt>o</tt>,&nbsp;<tt>u</tt>,&nbsp;<tt>x</tt>,&nbsp;<tt>X</tt>):&nbsp;<em>precision</em>&nbsp;specifies the minimum number of digits to be written. If the value to be written is shorter than this number, the result is padded with leading zeros. The value is not truncated even if the result is longer. A&nbsp;<em>precision</em>&nbsp;of&nbsp;<tt>0</tt>&nbsp;means that no character is written for the value&nbsp;<tt>0</tt>.<br>For&nbsp;<tt>e</tt>,&nbsp;<tt>E</tt>&nbsp;and&nbsp;<tt>f</tt>&nbsp;specifiers: this is the number of digits to be printed&nbsp;<strong>after</strong>&nbsp;de decimal point.<br>For&nbsp;<tt>g</tt>&nbsp;and&nbsp;<tt>G</tt>&nbsp;specifiers: This is the maximum number of significant digits to be printed.<br>For&nbsp;<tt>s</tt>: this is the maximum number of characters to be printed. By default all characters are printed until the ending null character is encountered.<br>For&nbsp;<tt>c</tt>&nbsp;type: it has no effect.<br>When no&nbsp;<em>precision</em>&nbsp;is specified, the default is&nbsp;<tt>1</tt>. If the period is specified without an explicit value for&nbsp;<em>precision</em>,&nbsp;<tt>0</tt>&nbsp;is assumed.<br></td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>.*</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">The&nbsp;<em>precision</em>&nbsp;is not specified in the&nbsp;<em>format</em>&nbsp;string, but as an additional integer value argument preceding the argument that has to be formatted.</td></tr></tbody></table><br><br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; "><em>length</em></th><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">description</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>h</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">The argument is interpreted as a&nbsp;<tt>short int</tt>&nbsp;or&nbsp;<tt>unsigned short int</tt>&nbsp;(only applies to integer specifiers:&nbsp;<tt>i</tt>,&nbsp;<tt>d</tt>,&nbsp;<tt>o</tt>,&nbsp;<tt>u</tt>,&nbsp;<tt>x</tt>&nbsp;and&nbsp;<tt>X</tt>).</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>l</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">The argument is interpreted as a&nbsp;<tt>long int</tt>&nbsp;or&nbsp;<tt>unsigned long int</tt>&nbsp;for integer specifiers (<tt>i</tt>,&nbsp;<tt>d</tt>,&nbsp;<tt>o</tt>,&nbsp;<tt>u</tt>,&nbsp;<tt>x</tt>&nbsp;and&nbsp;<tt>X</tt>), and as a wide character or wide character string for specifiers&nbsp;<tt>c</tt>&nbsp;and<tt>s</tt>.</td></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt>L</tt></td><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; ">The argument is interpreted as a&nbsp;<tt>long double</tt>&nbsp;(only applies to floating point specifiers:&nbsp;<tt>e</tt>,&nbsp;<tt>E</tt>,&nbsp;<tt>f</tt>,&nbsp;<tt>g</tt>&nbsp;and&nbsp;<tt>G</tt>).</td></tr></tbody></table></dd><br><br><dt>additional arguments</dt><dd>Depending on the&nbsp;<em>format</em>&nbsp;string, the function may expect a sequence of additional arguments, each containing one value to be inserted instead of each&nbsp;<tt>%</tt>-tag specified in the<em>format</em>&nbsp;parameter, if any. There should be the same number of these arguments as the number of&nbsp;<tt>%</tt>-tags that expect a value.</dd></dl><br><br><h3 style="font-size: 18px; ">Return Value</h3>On success, the total number of characters written is returned.<br>On failure, a negative number is returned.<br><br><h3 style="font-size: 18px; ">Example</h3><div class="auto" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><table class="snippet" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; "><tbody><tr><td class="rownum" style="color: rgb(160, 160, 160); text-align: right; vertical-align: top; min-width: 20px; "><tt>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br></tt></td><td class="source" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(239, 239, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(192, 192, 208); border-right-color: rgb(192, 192, 208); border-bottom-color: rgb(192, 192, 208); border-left-color: rgb(192, 192, 208); vertical-align: top; background-position: initial initial; background-repeat: initial initial; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><code><cite style="font-style: normal; color: rgb(0, 112, 0); ">/* fprintf example */</cite>
<dfn style="font-style: normal; color: rgb(80, 0, 112); ">#include &lt;stdio.h&gt;</dfn>

<var style="font-style: normal; color: rgb(0, 0, 176); ">int</var> main ()
{
   FILE * pFile;
   <var style="font-style: normal; color: rgb(0, 0, 176); ">int</var> n;
   <var style="font-style: normal; color: rgb(0, 0, 176); ">char</var> name [100];

   pFile = fopen (<kbd style="font-style: normal; color: rgb(96, 0, 48); ">"myfile.txt"</kbd>,<kbd style="font-style: normal; color: rgb(96, 0, 48); ">"w"</kbd>);
   <var style="font-style: normal; color: rgb(0, 0, 176); ">for</var> (n=0 ; n&lt;3 ; n++)
   {
     puts (<kbd style="font-style: normal; color: rgb(96, 0, 48); ">"please, enter a name: "</kbd>);
     gets (name);
     fprintf (pFile, <kbd style="font-style: normal; color: rgb(96, 0, 48); ">"Name %d [%-10.10s]\n"</kbd>,n,name);
   }
   fclose (pFile);

   <var style="font-style: normal; color: rgb(0, 0, 176); ">return</var> 0;
}</code></pre></td></tr></tbody></table></div><br><br>This example prompts 3 times the user for a name and then writes them to&nbsp;<tt>myfile.txt</tt>&nbsp;each one in a line with a fixed length (a total of 19 characters + newline).&nbsp;<br>Two format tags are used:<br><tt>%d</tt>&nbsp;: Signed decimal integer<br><tt>%-10.10s</tt>&nbsp;: left aligned (<tt>-</tt>), minimum of ten characters (<tt>10</tt>), maximum of ten characters (<tt>.10</tt>), String (<tt>s</tt>) .<br>Assuming that we have entered&nbsp;<tt>John</tt>,&nbsp;<tt>Jean-Francois</tt>&nbsp;and&nbsp;<tt>Yoko</tt>&nbsp;as the 3 names,&nbsp;<tt>myfile.txt</tt>&nbsp;would contain:<br><br><table class="boxed" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; color: black; border-collapse: collapse; "><tbody><tr><th style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-position: initial initial; background-repeat: initial initial; ">myfile.txt</th></tr><tr><td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; "><tt><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Name 1 [John      ] 
Name 2 [Jean-Franc] 
Name 3 [Yoko      ] </pre><div><br></div></tt></td></tr></tbody></table></div>
<img src ="http://www.cppblog.com/eping/aggbug/137550.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-12-27 12:16 <a href="http://www.cppblog.com/eping/archive/2010/12/27/137550.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>去掉拷贝源代码前面的行号</title><link>http://www.cppblog.com/eping/archive/2010/10/04/128580.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Mon, 04 Oct 2010 09:57:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/10/04/128580.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/128580.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/10/04/128580.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/128580.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/128580.html</trackback:ping><description><![CDATA[说明：有时候我们从网上或电子书中拷贝的源代码是有行号的，但我们又希望拷贝的代码可以直接使用？怎么办呢？<div>一、自己写个工具</div><div>二、网上找个工具</div><div>三、使用功能强大的编辑工具如editplus</div><div>本文使用的就是editplus，用editplus打开源代码文件[带行号的源代码文件]。按CURL+H 选上正则表达式 这个勾勾 &nbsp;在查到里输入以下正则表达式：</div><div><span  style="color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 18px; ">([0-9]+ )</span></div><div><span  style="color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 18px; ">注间： 表达式表示 前面为数字，后面为空格的 &nbsp;如下面这些代码可以使用这个表达式，但如果 源代码中出现有 &#8220;123 abc&#8221;这样的字符那么123 [123空格]这样的字符串也会被替换掉，所以要千万小心。</span></div><div><span  style="color: rgb(85, 85, 85); font-family: Verdana, 'BitStream vera Sans', Helvetica, sans-serif; font-size: 12px; line-height: 18px; "><div>1 &lt;HTML&gt;</div><div>2 &lt;HEAD&gt;</div><div>3 &lt;TITLE&gt;Scriptable Plug-in Test&lt;/TITLE&gt;</div><div>4 &lt;/HEAD&gt;</div><div>5 &lt;BODY id="bodyId"&gt;</div><div>正则表达式为：&nbsp;([0-9]+\.) &nbsp;则能找到 数字. 这样格式的 字符串 &nbsp; \相当于转义字符。</div><div>如 &nbsp;：</div><div>1. &nbsp; printf("hello world");</div><div>2. &nbsp;printf("\n");</div></span></div><img src ="http://www.cppblog.com/eping/aggbug/128580.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-10-04 17:57 <a href="http://www.cppblog.com/eping/archive/2010/10/04/128580.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux字符界面浏览器</title><link>http://www.cppblog.com/eping/archive/2010/09/19/127068.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Sun, 19 Sep 2010 06:40:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/19/127068.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/127068.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/19/127068.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/127068.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/127068.html</trackback:ping><description><![CDATA[&nbsp;&nbsp; &nbsp; 一、lynx<div>ubuntu下安装：sudo apt-get install lynx-cur</div><div>二、m3w ubuntu默认已经安装 &nbsp;用法：m3w &nbsp;www.eping.net</div><img src ="http://www.cppblog.com/eping/aggbug/127068.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-19 14:40 <a href="http://www.cppblog.com/eping/archive/2010/09/19/127068.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu编译libcurl</title><link>http://www.cppblog.com/eping/archive/2010/09/13/126498.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Mon, 13 Sep 2010 03:30:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/13/126498.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126498.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/13/126498.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126498.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126498.html</trackback:ping><description><![CDATA[

一、下载libcurl&nbsp;http://curl.haxx.se/download/curl-7.21.1.tar.gz<div>二、安装 &nbsp; 指定了安装目录 &nbsp; &nbsp; /usr/local/curl</div><div>命令1: ./configure --prefix=/usr/local/curl</div><div>结果：</div><div><div><br></div><div>&nbsp;&nbsp;curl version: &nbsp; &nbsp;7.21.1</div><div>&nbsp;&nbsp;Host setup: &nbsp; &nbsp; &nbsp;i686-pc-linux-gnu</div><div>&nbsp;&nbsp;Install prefix: &nbsp;/usr/local/curl</div><div>&nbsp;&nbsp;Compiler: &nbsp; &nbsp; &nbsp; &nbsp;gcc</div><div>&nbsp;&nbsp;SSL support: &nbsp; &nbsp; enabled (OpenSSL)</div><div>&nbsp;&nbsp;SSH support: &nbsp; &nbsp; no &nbsp; &nbsp; &nbsp;(--with-libssh2)</div><div>&nbsp;&nbsp;zlib support: &nbsp; &nbsp;enabled</div><div>&nbsp;&nbsp;krb4 support: &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp;(--with-krb4*)</div><div>&nbsp;&nbsp;GSSAPI support: &nbsp;no &nbsp; &nbsp; &nbsp;(--with-gssapi)</div><div>&nbsp;&nbsp;SPNEGO support: &nbsp;no &nbsp; &nbsp; &nbsp;(--with-spnego)</div><div>&nbsp;&nbsp;resolver: &nbsp; &nbsp; &nbsp; &nbsp;default (--enable-ares / --enable-threaded-resolver)</div><div>&nbsp;&nbsp;ipv6 support: &nbsp; &nbsp;enabled</div><div>&nbsp;&nbsp;IDN support: &nbsp; &nbsp; enabled</div><div>&nbsp;&nbsp;Build libcurl: &nbsp; Shared=yes, Static=yes</div><div>&nbsp;&nbsp;Built-in manual: enabled</div><div>&nbsp;&nbsp;Verbose errors: &nbsp;enabled (--disable-verbose)</div><div>&nbsp;&nbsp;SSPI support: &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp;(--enable-sspi)</div><div>&nbsp;&nbsp;ca cert bundle: &nbsp;/etc/ssl/certs/ca-certificates.crt</div><div>&nbsp;&nbsp;ca cert path: &nbsp; &nbsp;no</div><div>&nbsp;&nbsp;LDAP support: &nbsp; &nbsp;enabled (OpenLDAP)</div><div>&nbsp;&nbsp;LDAPS support: &nbsp; enabled</div><div>&nbsp;&nbsp;RTSP support: &nbsp; &nbsp;enabled</div><div>&nbsp;&nbsp;RTMP support: &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp;(--with-librtmp)</div><div>&nbsp;&nbsp;Protocols: &nbsp; &nbsp; &nbsp; DICT FILE FTP FTPS HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP</div></div><div>命令2：make</div><div>命令3：sudo make install</div><div>可以看到lib库，已经安装在&nbsp;/usr/local/curl/lib</div><div><div>----------------------------------------------------------------------</div><div>Libraries have been installed in:</div><div>&nbsp;&nbsp; /usr/local/curl/lib</div><div><br></div><div>If you ever happen to want to link against installed libraries</div><div>in a given directory, LIBDIR, you must either use libtool, and</div><div>specify the full pathname of the library, or use the `-LLIBDIR'</div><div>flag during linking and do at least one of the following:</div><div>&nbsp;&nbsp; - add LIBDIR to the `LD_LIBRARY_PATH' environment variable</div><div>&nbsp;&nbsp; &nbsp; during execution</div><div>&nbsp;&nbsp; - add LIBDIR to the `LD_RUN_PATH' environment variable</div><div>&nbsp;&nbsp; &nbsp; during linking</div><div>&nbsp;&nbsp; - use the `-Wl,-rpath -Wl,LIBDIR' linker flag</div><div>&nbsp;&nbsp; - have your system administrator add LIBDIR to `/etc/ld.so.conf'</div><div><br></div><div>See any operating system documentation about shared libraries for</div><div>more information, such as the ld(1) and ld.so(8) manual pages.</div></div><div>在安装目录下/usr/local/curl下会有四个目录&nbsp;bin &nbsp;include &nbsp;lib &nbsp;share 包含了所需的库、头文件等</div><img src ="http://www.cppblog.com/eping/aggbug/126498.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-13 11:30 <a href="http://www.cppblog.com/eping/archive/2010/09/13/126498.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>libcurl简介</title><link>http://www.cppblog.com/eping/archive/2010/09/13/126497.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Mon, 13 Sep 2010 03:08:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/13/126497.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126497.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/13/126497.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126497.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126497.html</trackback:ping><description><![CDATA[
<h1 class="pagetitle" style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; background-color: rgb(224, 224, 255); font-family: arial, helvetica, ariel, sans-serif; color: rgb(0, 0, 255); font-size: 22px; font-weight: bold; padding-top: 0px; padding-right: 4px; padding-bottom: 0px; padding-left: 4px; ">libcurl&nbsp;——多协议传输库</h1><div><div><p class="MsoNormal"><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">什么是</span><span lang="EN-US">libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">——</span><span lang="EN-US">libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">是免费的、开源的、容易使用的客户端</span><span lang="EN-US">URL</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">传输库，支持</span><span lang="EN-US">DICT</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">FILE</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">FTP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">FTP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">GOPHER</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">HTTP</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">HTTPS</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">IMAP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">IMAPS</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">LDAP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">LDAPS</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">POP3</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">POP3S</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">RTMP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">TRSP</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">SCP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">SFTP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">SMTP</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">SMTPS</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">TELNET</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">和</span><span lang="EN-US">FTFP</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">等协议。此外</span><span lang="EN-US">Libcurl</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">还支持安全套接字</span><span lang="EN-US">[SSL]</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">HTTP POST</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">HTTP PUT</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">FTP</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">上传及基于</span><span lang="EN-US">HTTP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">表单的上传，不仅如此它还支持代理、</span><span lang="EN-US">cookies</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、用户</span><span lang="EN-US">+</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">密码的授权认证、文件传输恢复、</span><span lang="EN-US">HTTP</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">隧道代理等等。</span><span lang="EN-US"><o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">不仅是个轻量级的网络库，而且是跨平台的网络库。</span><span lang="EN-US">Libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">可以在多个平台上编译使用。包括</span><span lang="EN-US">Solaris</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">NetBSD</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">FreeBSD</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">OpenBSD</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">Darwin</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">HPUX</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">IRIX</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">RIX</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">Tru64</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">Linux</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">UnixWare</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">HURD</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">Windows</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">Amiga</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">OS/2</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">BeOs</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">MAX OS X</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">Ultrix</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">、</span><span lang="EN-US">QNX</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">OpenVMS</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">RISC OS</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">Novell NetWare</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、</span><span lang="EN-US">DOS</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">等操作系统。</span><span lang="EN-US"><o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">除此之外，</span><span lang="EN-US">libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">还具有线程安全，兼容</span><span lang="EN-US">IPv6</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、功能丰富、容易使用等特点。目前</span><span lang="EN-US">libcurl</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">已在许多知名的公司和应用程序中广泛使用。</span><span lang="EN-US"><o:p></o:p></span></p></div><div style="font-size: 24pt; "><span style="font-size: 16px; font-family: arial, sans-serif; ">原文详情：</span><span style="font-size: medium; "><a href="http://curl.haxx.se/libcurl/">http://curl.haxx.se/libcurl/</a></span></div><br></div>
<img src ="http://www.cppblog.com/eping/aggbug/126497.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-13 11:08 <a href="http://www.cppblog.com/eping/archive/2010/09/13/126497.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]ubuntu mysql源码安装</title><link>http://www.cppblog.com/eping/archive/2010/09/09/126261.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Thu, 09 Sep 2010 11:59:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/09/126261.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126261.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/09/126261.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126261.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126261.html</trackback:ping><description><![CDATA[
<div>一、安装Mysql</div><div>1、sudo apt-get install g++ gcc make automake perl libncurses5-dev kdelibs_dev kdelib</div><div>安装 ncurses-5.6</div><div>（确保需要的工具完好安装）</div><div>2、cd ~/Downloads</div><div>（进入压缩包所在目录）</div><div>3、tar zxvf mysql-6.0.2-alpha.tar.gz</div><div>（解压到此处）</div><div>4、cd mysql-6.0.2-alpha</div><div>（进入解压出来的源码包文件夹）</div><div>5、 ./configure --prefix=/usr/local/mysql</div><div>（指定安装路径）</div><div>6、make</div><div>（编译安装程序）</div><div>7、sudo make install</div><div>（进行安装）</div><div>8、sudo cp support-files/my-medium.cnf /etc/my.cnf</div><div>（复制源码包内的设置文件到/etc/系统统一的设置文件路径）</div><div>9、sudo ln -s /usr/local/mysql/bin/mysql /usr/bin/</div><div>sudo ln -s /usr/local/mysql/bin/mysqladmin /usr/bin/</div><div>sudo ln -s /usr/local/mysql/bin/mysqld_safe /usr/bin/</div><div>sudo ln -s /usr/local/mysql/bin/mysql_conf /usr/bin/</div><div>sudo ln -s /usr/local/mysql/share/mysql/mysql.server /usr/bin/</div><div>（添加执行程序的软链接，这只是为了方便，喜欢用完整路径的可以不做）</div><div>10、sudo groupadd mysql</div><div>（创建用户组mysql）</div><div>11、sudo useradd -g mysql mysql</div><div>（在用户组mysql下创建用户mysql）</div><div>12、cd /usr/local/mysql</div><div>（进入主程序目录）</div><div>13、sudo bin/mysql_install_db --user=mysql</div><div>（如果还没有安装的MySQL，必须创建MySQL授权表。创建后，需要手动重新启动服务器）</div><div>14、sudo chown -R root .</div><div>（使/usr/local/mysql/目录下所有文件为根用户root所有）</div><div>15、sudo chown -R mysql var</div><div>（使/usr/local/mysql/var/目录下所有文件为用户mysql所有）</div><div>16、sudo chgrp -R mysql .</div><div>（使/usr/local/mysql/目录下所有文件为用户组mysql所有）</div><div>17、sudo bin/mysql_safe --use=mysql &amp;</div><div>（初始化并测试你的mysql,其中&amp;为后台执行的意思）</div><div><br></div><div>二、启动Mysql Server</div><div>mysql_config</div><div>或</div><div>mysqld_safe --user=mysql &amp;</div><div>或</div><div>mysql.server start</div><div><br></div><div>三、设置自启动</div><div>1、sudo cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysql</div><div>2、sudo chmod +x mysql</div><div><br></div><div>四、添加Mysql用户密码</div><div>1、确保Mysql Server已启动</div><div>2、mysql -u root -p</div><div>3、SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');</div><div>4、SET PASSWORD FOR 'root'@'hostname' = PASSWORD('newpwd');</div><div>（hostname是你的主机名，按实际情况而定，）</div><img src ="http://www.cppblog.com/eping/aggbug/126261.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-09 19:59 <a href="http://www.cppblog.com/eping/archive/2010/09/09/126261.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql源码下载</title><link>http://www.cppblog.com/eping/archive/2010/09/09/126247.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Thu, 09 Sep 2010 08:28:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/09/126247.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126247.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/09/126247.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126247.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126247.html</trackback:ping><description><![CDATA[<span  style="color: rgb(0, 136, 0); font-family: Arial, 'Microsoft Yahei', Simsun, sans-serif; font-size: 13px; white-space: nowrap; ">http://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.1/mysql-5.1.50.tar.gz</span>
<img src ="http://www.cppblog.com/eping/aggbug/126247.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-09 16:28 <a href="http://www.cppblog.com/eping/archive/2010/09/09/126247.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql源码下载及安装</title><link>http://www.cppblog.com/eping/archive/2010/09/09/126228.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Thu, 09 Sep 2010 03:27:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/09/126228.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126228.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/09/126228.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126228.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126228.html</trackback:ping><description><![CDATA[

<span style="color: rgb(0, 136, 0); font-family: Arial, 'Microsoft Yahei', Simsun, sans-serif; font-size: 13px; white-space: nowrap; ">一、Mysql下载&nbsp;</span><span style="color: rgb(0, 136, 0); font-family: Arial, 'Microsoft Yahei', Simsun, sans-serif; font-size: 13px; white-space: nowrap; ">http://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.1/mysql-5.1.50.tar.gz&nbsp;</span><div><span style="color: rgb(0, 136, 0); font-family: Arial, 'Microsoft Yahei', Simsun, sans-serif; font-size: 13px; white-space: nowrap; ">二、安装 详情见MySql官方文档&nbsp;</span><a href="http://dev.mysql.com/doc/refman/5.1/zh/installing.html#installing-source">http://dev.mysql.com/doc/refman/5.1/zh/installing.html#installing-source</a></div><div><span style="color: rgb(0, 136, 0); font-family: Arial, 'Microsoft Yahei', Simsun, sans-serif; font-size: 13px; white-space: nowrap; "><span style="color: rgb(85, 85, 85); font-family: verdana, arial, helvetica, sans-serif; white-space: normal; line-height: 23px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">groupadd mysql</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">useradd -g mysql mysql</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">gunzip &lt; mysql-<em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VERSION</em>.tar.gz | tar -xvf -</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">cd mysql-<em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">VERSION</em></span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">./configure --prefix=/usr/local/mysql</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">make</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">make install</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">cp support-files/my-medium.cnf /etc/my.cnf</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">cd /usr/local/mysql</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">bin/mysql_install_db --user=mysql</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">chown -R root&nbsp; .</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">chown -R mysql var</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">chgrp -R mysql .</span></strong></span></pre><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; color: rgb(161, 82, 15); font-family: 'courier new', courier, fixed, monospace; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">shell&gt; </span><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">bin/mysqld_safe --user=mysql &amp;</span></strong></span></pre></span></span></div><img src ="http://www.cppblog.com/eping/aggbug/126228.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-09 11:27 <a href="http://www.cppblog.com/eping/archive/2010/09/09/126228.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux安装Apache服务器</title><link>http://www.cppblog.com/eping/archive/2010/09/09/126203.html</link><dc:creator>Eping</dc:creator><author>Eping</author><pubDate>Wed, 08 Sep 2010 16:40:00 GMT</pubDate><guid>http://www.cppblog.com/eping/archive/2010/09/09/126203.html</guid><wfw:comment>http://www.cppblog.com/eping/comments/126203.html</wfw:comment><comments>http://www.cppblog.com/eping/archive/2010/09/09/126203.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eping/comments/commentRss/126203.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eping/services/trackbacks/126203.html</trackback:ping><description><![CDATA[一、下载Apache http 服务器<br>&nbsp;&nbsp;&nbsp; 目前最新为httpd-2.2.16 http://httpd.apache.org/download.cgi<br>二、解压Apache <br>&nbsp;&nbsp;&nbsp; tar -xzvf&nbsp; httpd-2.2.16.tar.gz<br>三、进入httpd-2.2.16 目录<br>./configure <br>make <br>sudo make install //我使用的是ubuntu系统<br>默认情况下apache 安装在&nbsp; /usr/local/apache2<br>四、配置apche <br>/usr/local/apache2/conf/httpd.conf<br>五、启动 apche ／关闭&nbsp; ／重启<br>sudo ./bin/apachectl start&nbsp;&nbsp; /stop /restart<br><br><br><br><br><img src ="http://www.cppblog.com/eping/aggbug/126203.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eping/" target="_blank">Eping</a> 2010-09-09 00:40 <a href="http://www.cppblog.com/eping/archive/2010/09/09/126203.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>