Why do I get a 'ÿ' char after every include that is extracted by my parser? - C

前端 未结 3 660
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-21 13:02

I have this function:

/*This func runs *.c1 file, and replace every include file with its content
It will save those changes to *.c2 file*/
void includes_ext         


        
3条回答
  •  猫巷女王i
    2020-12-21 13:18

    If you look at your code you have to places where you write to the target file.

    If I were you I would set a break point at

            }/*frst if*/
            else
            {
            fputc(ch,c2_fp); // brk point here
            }
    

    to check what you are actually writing there.

提交回复
热议问题