Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bgc

> 编程语言
Open source

Beej's Guide to C Programming source

681 stars0 likes1 views
WebsiteGitHub

About

Beej's Guide to C Programming source

Beej's Guide to C

This is the source for Beej's Guide to C.

If you merely wish to read the guide, please visit the Beej's Guide to C website.

This is here so that Beej has everything in a repo and so translators can easily clone it.

Build Instructions

Dependencies

  • Gnu make (XCode make works, too)
  • Python 3+
  • Pandoc 2.7.3+
  • XeLaTeX (can be found in TeX Live)
  • Liberation fonts (sans, serif, mono)

Mac dependencies install (reopen terminal after doing this):

bash
xcode-select --install                  # installs make
brew install python                     # installs Python3
brew install pandoc
brew install mactex                     # installs XeLaTeX
brew tap homebrew/cask-fonts
brew install font-liberation            # installs Liberation fonts

You might have to add something like this to your path to find xelatex:

PATH=$PATH:/usr/local/texlive/2021/bin/universal-darwin

Dependency: Build System

This depends on an external repo to build: Beej's Guide Build System for Pandoc.

You'll want to clone that repo as a sibling to this one:

mystuff-->bggit
      \-->bgbspd

The Makefiles here will look for the build system there.

You can override the bgbspd directory before running make like this:

bash
export BGBSPD_BUILD_DIR=/some/path/to/bgbspd

Build

  1. Type make from the top-level directory.

    If you have Gnu Make, it should work fine. Other makes might work as well. Windows users might want to check out Cygwin.

  2. Type make stage to copy all the build products and website to the stage directory.

  3. There is no step three.

You can also cd to the src directory and make.

make clean cleans, and make pristine cleans to "original" state.

To embed your own fonts in the PDFs, see the src/Makefile for examples.

The upload target in the root Makefile demonstrates the build steps for a complete release. You'll need to change the UPLOADDIR macro in the top-level Makefile to point to your host if you want to use that. You're free to upload whatever versions you desire individually, as well.

Pull Requests

Please keep these on the scale of typo and bug fixes. That way I don't have to consider any copyright issues when merging changes.

TODO

  • Projects
  • More info on reserved identifiers
  • Digraphs/Trigraphs
  • C23

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言