How can I parseInt with arduino ?

I am trying to parse an integer in arduino but I couldn´t
I used this function Stream.parseInt() - Arduino Reference
but I get this error

error: 'parseInt' was not declared in this scope

I want to convert an existing char value into integer just like this
int value = parseInt('1'); // this is what I want // valid for other programming languages like javascript
//but how can I do it with arduino

I used it simply this way

 int value= parseInt('1');

I cant find the problem
can somebody help me ?

How are you trying to use it? Post your code.

I modified my post , can you check the code above please

The parseInt "function" that you are trying to use is a method of the Stream class. It needs to be called for some Stream object, like:

int val = Serial.parseInt();

PaulS:
The parseInt "function" that you are trying to use is a method of the Stream class. It needs to be called for some Stream object, like:

int val = Serial.parseInt();

actuall I want to convert a value from char into integer not to get a value from a stream

actuall I want to convert a value from char into integer not to get a value from a stream

Then, the Stream::parseInt() function is not what you want to be using. atoi() is.