Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created June 29, 2021 20:15
Show Gist options
  • Select an option

  • Save alsamitech/1246f19cc41aa21f5a5df97f2b529309 to your computer and use it in GitHub Desktop.

Select an option

Save alsamitech/1246f19cc41aa21f5a5df97f2b529309 to your computer and use it in GitHub Desktop.
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