ri

来自「Algorithms for Image Processing and Comp」· 代码 · 共 30 行

TXT
30
字号
@c ----------------------------------------------------------------------
@node rindex, string
@heading @code{rindex}
@subheading Syntax

@example
#include <string.h>

char *rindex(const char *string, int ch);
@end example

@subheading Description

Returns a pointer to the last occurrence of @var{ch} in @var{string}. 
Note that the @code{NULL} character counts, so if you pass zero as
@var{ch} you'll get a pointer to the end of the string back. 

@subheading Return Value

A pointer to the character, or @code{NULL} if it wasn't found.

@subheading Example

@example
char *extension = rindex(path, '.');
if (extension)
  extension++;
@end example

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?