Replace a byte in a specific index of a given parameter

后端 未结 0 717
日久生厌
日久生厌 2020-11-21 04:39

So I\'m using the following code:

 unsigned long replaceByte(unsigned long original, unsigned char newByte, int indexToReplace){
     int shift = indexToRepla         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题