"在C函数参数定义中-6ren"> "在C函数参数定义中-当我遇到一个奇怪的函数定义时,我正在阅读 CFITSIO(用于处理 FITS 图像和其他天文图像数据的 C 库)的文档。 int fits_movrel_hdu / ffmrhd (fitsfil-6ren">
gpt4 book ai didi

c - ">"在C函数参数定义中

转载 作者:行者123 更新时间:2023-12-05 01:27:26 24 4
gpt4 key购买 nike

当我遇到一个奇怪的函数定义时,我正在阅读 CFITSIO(用于处理 FITS 图像和其他天文图像数据的 C 库)的文档。

int fits_movrel_hdu / ffmrhd
(fitsfile *fptr, int nmove, > int *hdutype, int *status)

我的问题是第三个参数中的“>”符号的作用是什么,int *hdutype。我看到它出现在这个库的许多其他函数中,但我从未在我记得的任何其他 API 或 C 代码中遇到过它。

您可以在 Hawaii's Telescope Software Page 看到更多使用此示例的示例

最佳答案

引自 Advanced Interface Routines (重点是我的)(在您链接到的页面中单击“向上”)

  1. Each routine has 2 names: a long descriptive name and a short concise name. Both names are listed on the first line of the following descriptions, separated by a slash (/) character.

  2. A right arrow symbol (>) is used to separate the input parameters from the output parameters in the definition of each routine. This symbol is not actually part of the C calling sequence. Note that the status parameter is both an input and an output parameter.

关于c - ">"在C函数参数定义中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5559359/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com