Function find2¶
Defined in File stdafx.h
Function Documentation¶
-
Byte
find2
(char *dst, Byte len, Byte *pos)¶ Given a string of length
len
, finds the positions in which it has a 1 and stores its position i, as 2*i and 2*i+1 in consecutive slots of the array pos.It also returns (twice) the number of ones in array dst
- Return
returns twice the number of ones in array
dst
.- Parameters
dst
: character array representing binary digits.len
: length of the arraydst
.pos
: resulting character array of length2*len
storing the indices at whichdst
contains the values 1.
libwalrus_cpp_api/function_stdafx_8h_1af74839aa45ab3284d11b1bbb90726320
Download Python script
Download Notebook
View on GitHub
Contents
Downloads