Skip to content

Commit 2fc1511

Browse files
committed
Use :c:func:system, not system
1 parent 638d2a0 commit 2fc1511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/extending/first-extension-module.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ standard library function :c:func:`system`.
6464
This function is defined in ``stdlib.h``.
6565
It takes a C string as argument, runs the argument as a system
6666
command, and returns a result value as an integer.
67-
A manual page for ``system`` might summarize it this way::
67+
A manual page for :c:func:`system` might summarize it this way::
6868

6969
#include <stdlib.h>
7070
int system(const char *command);
@@ -310,7 +310,7 @@ The next step will be adding a function.
310310
Exposing a function
311311
===================
312312

313-
To expose the ``system`` C function directly to Python,
313+
To expose the :c:func:`system` C function directly to Python,
314314
we'll need to write a layer of glue code to convert arguments from Python
315315
objects to C values, and the C return value back to Python.
316316

@@ -512,7 +512,7 @@ Add an ``if`` block for this:
512512
}
513513
514514
That's it for the setup.
515-
Now, all that is left is calling C library function ``system`` with
515+
Now, all that is left is calling C library function :c:func:`system` with
516516
the ``char *`` buffer, and using its result instead of the ``3``:
517517

518518
.. code-block:: c

0 commit comments

Comments
 (0)