📄 hammdec.3
字号:
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)hammdec.3 1.5 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH HAMM_DEC 3\-ESPSsp 18 Apr 1997.SH NAMEhamm_dec \- decode an 8-bit Hamming (8,4) coded integer into aninteger that lies in the range [0,15]..SH SYNOPSIS.ft Bint hamm_dec (data, code).brshort *data;.brint code;.PP.SH DESCRIPTION.PP.I hamm_decdecodes an integer .I codeinto an integer between [0,15]and returns it in .I data..I hamm_decdoes single error correction and double error detection.If no errors were detected, .I hamm_dec returns a value of 0 and the .I data value;if a single error was corrected, .I hamm_decreturns a value of 1 and the corrected .I data value;if a double error is detected,it returns a value of 2 and a .I datavalue of -1..SH DIAGNOSTICS.PP.I hamm_decreturns a value of -1 if .I codeis greater than 255 or less than 0..SH SEE ALSO.na.IR hamm_enc (3\-ESPSsp).ad.SH REFERENCES[1] R. E. Hamming, Coding and Information Theory, Prentice-Hall, Inc., Englewood Cliffs, New Jersey, 1980.SH AUTHORCode by D. Burton, manual page by D. Burton
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -