memfrob

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

memfrob - frobnicate (obfuscate) a memory area  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#define _GNU_SOURCE             /* feature_test_macros(7) 参照 */
#include <string.h>

void *memfrob(size_t n;
              void s[n], size_t n);
 

説明

The memfrob() function obfuscates the first n bytes of the memory area s by exclusive-ORing each character with the number 42. The effect can be reversed by using memfrob() on the obfuscated memory area.

この関数は妥当な暗号化ルーチンであるとは言えないことに注意して欲しい。 XOR をとる定数を固定しているので、せいぜい、文字列を隠す程度の用途にしか向いていない。  

返り値

The memfrob() function returns a pointer to the obfuscated memory area.  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
memfrob() Thread safetyMT-Safe
 

標準規格

GNU.  

関連項目

bstring(3), strfry(3)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
関連項目

This document was created by man2html, using the manual pages.