Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

countdown_timer.c(119): error C100: unprintable character 0x97 skipped

Status
Not open for further replies.

snytax error

Newbie level 2
Joined
Dec 7, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
20
I'm sorry if I'm at the wrong thread section, please MOD transfer to the right section

anyway, I'm a newbie to programming

I have a problem with this error

countdown_timer.c(119): error C100: unprintable character 0x97 skipped
countdown_timer.c(174): error C100: unprintable character 0x97 skipped
countdown_timer.c(188): error C100: unprintable character 0x97 skipped
countdown_timer.c(280): error C100: unprintable character 0x96 skipped
countdown_timer.c(280): error C100: unprintable character 0x96 skipped
countdown_timer.c(294): error C100: unprintable character 0x96 skipped
countdown_timer.c(294): error C100: unprintable character 0x96 skipped


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
118  case 3:
119  SetSec—;
120  if(SetSec>9999)
 
173  {
174 KeyCount—;
175 if(KeyCount<1)KeyCount=1;
 
187   {
188 dly—;
189 for(z=0;z<8000;z++);

This program was posted on PDF Industrial Timer, and I compile it with Keil with the error above.
 
Last edited by a moderator:

I have this same problem with unprintable character 0x96 on build, in the below code.
So I updated the code from h-; to h--;

Clock_Cal1.c(183): error C100: unprintable character 0x96 skipped
Clock_Cal1.c(191): error C100: unprintable character 0x96 skipped
Clock_Cal1.c(217): error C100: unprintable character 0x96 skipped
In this code.

Code:
181  if(m>0)             // if minute is greater then zero
182 {
183 m–;                              // minute is decrease till zero
184 s=-1 ;                          // after releasing minute decrease button seconds initialize from   
185 }
186 }
187 else if(r==0)          // switch for decreasing hours
188 {
189 if(h>0)                // if hour is greater than zero
190 {
191 h–;                      // hour is decrease till zero
      s=-1;                    // after releasing hour decrease button seconds initialize from zero
      }
      }
      else if(l==0)             // switch for increasing minutes
      {
      m++;
      s=-1;
      if(m>60)                  // if increased minutes are above than 60 than it again start from zero
      {
      m=0;
       s=-1;
       }
       }
       else if(t==0)           // switch for increasing days
       {
       i++;

But with the double dash added (h--;) new errors appear as follows.

Clock_Cal1.c(183): error C100: unprintable character 0x96 skipped
Clock_Cal1.c(183): error C141: syntax error near ';'
Clock_Cal1.c(191): error C100: unprintable character 0x96 skipped
Clock_Cal1.c(191): error C141: syntax error near ';'

Any suggestions appreciated.
 
Last edited:

You should definitely check (or probably change) your programming editor.

Windows character 0x96 is displayed as minus sign, but not recognized by the compiler. I wonder how you managed to enter it in regular code?

- - - Updated - - -

This program was posted on PDF Industrial Timer
That might be an explanation how you caught the strange characters. The can be replaced by regular characters with search and replace.
 

It's not a Keil problem, it's a problem of importing formated text without filtering special characters.

In the printout, the unary operator -- is replaced by a dash character, 0x96 or 0x97. You have to reformat it to legal C syntax, that's all. In case of doubt, delete and retype the faulty lines.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top