Coder Social home page Coder Social logo

getiot / linux-c-functions Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 6.0 209 KB

Linux 常用 C 函数参考手册(中文)

Home Page: https://getiot.tech/manual/linux-c-functions/

Makefile 14.81% Batchfile 18.55% Python 55.94% CSS 1.23% HTML 3.60% JavaScript 5.87%
c-language documentation tutorial tutorial-code

linux-c-functions's Introduction

linux-c-functions

这是一份开源的《Linux 常用 C 函数参考手册》中文版,文档托管在 GetIoT.tech 网站,你可以点击 这里 在线阅读。如果你在阅读过程中发现错误或者遗漏,欢迎给本仓库提交 issue 和 PR!示例代码均可在 linux-c 仓库找到。

目录

函数

新增函数

  • malloc_usable_size

模板

简介

头文件

#include <stdio.h>

函数原型

int printf(const char *format, ...);
  • 功能:
  • 返回值:
  • 附加说明:
  • 相关函数:

示例

int main(void)
{
    printf("Hello, World!\n");
    return 0;
}

执行

Hello, World!

如何参与

linux-c-functions 文档系统的目录结构很简单,所有文档均放置在 source 目录中,source 目录的大致结构和简要说明如下。

source
├── conf.py      # 文档配置文件
├── index.rst    # 文档首页(包含目录信息)
├── about.rst    # 关于页面
├── **.md        # 函数分类页面
├── _static      # 静态资源目录
└── _templates   # 模板资源目录

source 目录下包含多个 .md 文档,每个文档是一个大类的 C 函数。

char.md            file.md             memory.md         process.md         time.md
data-structure.md  io-multiplexing.md  memory-string.md  pthreads.md        tty.md
env.md             ipcs.md             network.md        signal.md          user-group.md
file-content.md    math.md             permission.md     string-convert.md

你可以找到其中的某个函数进行修改,对于不存在的函数,你可以新增。如果找不到想要的分类,可以在提 issue 讨论。

如何构建

Sphinx 文档系统支持本地构建、部署,这里以 Ubuntu 为例(其他 Linux 发行版、MacOS 或 Windows 也行),介绍如何构建出可在本地访问的 linux-c-functions 在线文档。

首先需要安装 Python3、Git、Make 等基础软件。

sudo apt install git
sudo apt install make
sudo apt install python3
sudo apt install python3-pip 

然后安装最新版本的 Sphinx 及依赖。

pip3 install -U Sphinx

为了完成本示例,还需要安装以下软件包。

pip3 install sphinx-autobuild
pip3 install sphinx_rtd_theme
pip3 install recommonmark
pip3 install sphinx_markdown_tables

安装完成后,系统会增加一些 sphinx- 开头的命令。

sphinx-apidoc    sphinx-autobuild    sphinx-autogen    sphinx-build    sphinx-quickstart

在工程目录下执行下面命令,生成 HTML 网页并启动本地测试 Web Server,默认端口为 8000。

sphinx-autobuild source build/html

现在,在浏览器输入 127.0.0.1:8000 即可访问。

linux-c-functions's People

Contributors

luhuadong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.