could any one please give me the string.h library or library required for subsrting
thanks
could any one please give me the string.h library or library required for subsrting
thanks
What is "subsrting" ?
You already have "string.h"
I have Arduino 1.0.5-r2 unzipped archive.
I cannot find string.h.
Where it is located?
If you have the 1.5.7 IDE you can use the online repository:
Its WString.h
The file structure "hardware/arduino/avr/cores/arduino" is what you will need to look for in your local copy.
On 1.0.5
https://github.com/arduino/Arduino/tree/master/hardware/arduino/cores/arduino
Look for "hardware/arduino/cores/arduino"
pYro_65:
If you have the 1.5.7 IDE you can use the online repository:
Arduino/hardware/arduino/avr/cores/arduino at ide-1.5.x · arduino/Arduino · GitHubIts WString.h
The file structure "hardware/arduino/avr/cores/arduino" is what you will need to look for in your local copy.
On 1.0.5
https://github.com/arduino/Arduino/tree/master/hardware/arduino/cores/arduino
Look for "hardware/arduino/cores/arduino"
where is no such a directory "hardware/arduino/avr/cores/arduino"
I have Arduino 1.0.5 Windows ZIP file (for non-administrator install)
The reason I'm asking this is that I have project where typed #include <string.h>, then I wanted to find this file and take a look, but I didn't find it.
I just checked and you do in fact have String capabilities without including any additional files. Just take note that there is a difference between "string" and "String", the capital S. Take a look in the reference page or more specifically this page String() - Arduino Reference
This is the code that I tested with and it does in fact print 5.
void setup(){
Serial.begin(9600);
String myString = "hello";
Serial.println(myString.length());
}
void loop(){}
AndreyS:
where is no such a directory "hardware/arduino/avr/cores/arduino"
I have Arduino 1.0.5 Windows ZIP file (for non-administrator install)
The reason I'm asking this is that I have project where typed #include <string.h>, then I wanted to find this file and take a look, but I didn't find it.
Inside the zip file, you should see the arduino application, and a folder called hardware ( among other things ), if you find that folder, follow the above folder list to get you to the Arduino core, with WString.h
The online link I gave you is the same file.
how can i download string.h library?
hola encontraste la libreria string.h? yo tambien la estoy buscando y no la puedo descargar. Mi IDE es 1.8.6
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WString
The string.h file is part of AVR Libc (hardware/tools/avr/avr/include/string.h).
Genial gracias ya lo encontre! copie el archivo a librerias pero el programa sigue sin compilar