You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/manual/calling-c-and-fortran-code.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,7 @@ First, a review of some relevant Julia type terminology:
287
287
|`struct ...; end`|`nothing`| "Singleton" :: a Leaf Type or Struct with no fields. |
288
288
|`(...)` or `tuple(...)`|`(1, 2, 3)`| "Tuple" :: an immutable data-structure similar to an anonymous struct type, or a constant array. Represented as either an array or a struct. |
289
289
290
-
### Bits Types:
290
+
### [Bits Types](@id man-bits-types)
291
291
292
292
There are several special types to be aware of, as no other type can be defined to behave the
293
293
same:
@@ -374,7 +374,7 @@ an `Int` in Julia).
374
374
|`va_arg`||| Not supported |
375
375
|`...` (variadic function specification) |||`T...` (where `T` is one of the above types, variadic functions of different argument types are not supported) |
376
376
377
-
The `Cstring` type is essentially a synonym for `Ptr{UInt8}`, except the conversion to `Cstring`
377
+
The [`Cstring`](@ref) type is essentially a synonym for `Ptr{UInt8}`, except the conversion to `Cstring`
378
378
throws an error if the Julia string contains any embedded NUL characters (which would cause the
379
379
string to be silently truncated if the C routine treats NUL as the terminator). If you are passing
380
380
a `char*` to a C routine that does not assume NUL termination (e.g. because you pass an explicit
@@ -413,7 +413,7 @@ checks and is only meant to improve readability of the call.
413
413
(`void`) but do return, use `Cvoid` instead.
414
414
415
415
!!! note
416
-
For `wchar_t*` arguments, the Julia type should be `Cwstring` (if the C routine expects a NUL-terminated
416
+
For `wchar_t*` arguments, the Julia type should be [`Cwstring`](@ref) (if the C routine expects a NUL-terminated
417
417
string) or `Ptr{Cwchar_t}` otherwise. Note also that UTF-8 string data in Julia is internally
418
418
NUL-terminated, so it can be passed to C functions expecting NUL-terminated data without making
419
419
a copy (but using the `Cwstring` type will cause an error to be thrown if the string itself contains
0 commit comments