ext_3_fibre.c

来自「reiser4progs ReiserFS V4 ReiserFs官方已经关」· C语言 代码 · 共 30 行

C
30
字号
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by   reiser4progs/COPYING.      ext_3.c -- 3-symbol extention fibration code. */#ifdef ENABLE_EXT_3_FIBRE#include <reiser4/plugin.h>static uint8_t fibre_ext_3_build(char *name, uint32_t len) {	if (len > 4 && name[len - 4] == '.')		return (uint8_t)(name[len - 3] +				 name[len - 2] +				 name[len - 1]);	return 0;}reiser4_fibre_plug_t fibre_ext_3_plug = {	.p = {		.id    = {FIBRE_EXT_3_ID, 0, FIBRE_PLUG_TYPE},#ifndef ENABLE_MINIMAL		.label = "ext_3_fibre",		.desc  = "3-symbol extention fibration plugin.",#endif	},		.build = fibre_ext_3_build};#endif

⌨️ 快捷键说明

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