# 範例程式解析

TLPI (The Linux Programming Interface) 的價值之一就是有許多的範例程式，而原作也將這些範例程式以 GNU 授權的方式提供，即使沒有買到這本書，這些範例也是很有價值與幫助，小編將不定期抽出時間在這個專頁提供 TLPI 的範例程式解析。

這裡介紹的 source code 會以小編放在這個 github 的為主：

<https://github.com/myliao2007/tlpi-sample/>

原作的範例程式採 GNU 授權

All of the source code is copyright Michael Kerrisk, and each file is licensed under the either [GNU General Public License (Version 3)](http://www.fsf.org/licensing/licenses/gpl-3.0.html) (most files) or the [GNU Lesser General Public License (Version 3)](http://www.fsf.org/licensing/licenses/lgpl-3.0.html) (library code); see the individual files for details.

原作的最新範例程式

{% embed url="<https://man7.org/tlpi/code/index.html>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tlpi-zhtw.netdpi.net/tlpi_sample.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
