简体   繁体   English

“>”在C函数参数定义中

[英]“>” In C function argument definition

I'm reading documentation for CFITSIO (C library for working with FITS images and other astronomical image data) when I come across an odd function definition. 当我遇到一个奇怪的函数定义时,我正在阅读CFITSIO(用于处理FITS图像和其他天文图像数据的C库)的文档。

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

My question is what is the function of the ">" symbol in the third argument, int *hdutype. 我的问题是第三个参数int * hdutype中“>”符号的功能是什么。 I see it occurs in many other functions in this library, but I have never come across it in any other API or C Code that I can recall. 我看到它出现在这个库中的许多其他函数中,但我从未在任何其他API或C代码中遇到它,我记得。

You can see more examples of this being used at Hawaii's Telescope Software Page 您可以在夏威夷的Telescope软件页面上看到更多这样的例子

Quote from Advanced Interface Routines (the emphasis is mine) (click "Up" in the page you linked to) 引用高级界面例程 (重点是我的) (点击你链接到的页面中的“向上”)

  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. 该符号实际上不是C调用序列的一部分。 Note that the status parameter is both an input and an output parameter. 请注意,status参数既是输入参数又是输出参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM