Created
June 29, 2021 20:15
-
-
Save alsamitech/1246f19cc41aa21f5a5df97f2b529309 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char arr_first(arr_t bytes, arr_t first){ | |
| for(size_t i=0;i<bytes.len;i++){ | |
| for(size_t fi=0;fi<first.len;fi++){ | |
| if(bytes.arr[i]==first.arr[fi]){ | |
| return first.arr[fi]; | |
| } | |
| } | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment