Commit 77dcd903a0

Evan Haas <evan@lagerdata.com>
2023-06-28 20:58:45
langref: Add c_char to the list of primitive types
1 parent 82520a2
Changed files (1)
doc/langref.html.in
@@ -736,6 +736,11 @@ pub fn main() void {
           <td>unsigned pointer sized integer. Also see <a href="https://github.com/ziglang/zig/issues/5185">#5185</a></td>
         </tr>
 
+        <tr>
+            <th scope="row">{#syntax#}c_char{#endsyntax#}</th>
+          <td><code class="c">char</code></td>
+          <td>for ABI compatibility with C</td>
+        </tr>
         <tr>
             <th scope="row">{#syntax#}c_short{#endsyntax#}</th>
           <td><code class="c">short</code></td>
@@ -10813,6 +10818,7 @@ lib.addCSourceFile("src/lib.c", &[_][]const u8{
       These have guaranteed C ABI compatibility and can be used like any other type.
       </p>
       <ul>
+          <li>{#syntax#}c_char{#endsyntax#}</li>
           <li>{#syntax#}c_short{#endsyntax#}</li>
           <li>{#syntax#}c_ushort{#endsyntax#}</li>
           <li>{#syntax#}c_int{#endsyntax#}</li>