Pages: [1]   Go Down
Author Topic: Undocumneted command?  (Read 1525 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, I ran into someone asking about the strlen command...

How many commands are there that aren't listed on the main reference page?

http://arduino.cc/en/Reference/HomePage

Is there a full list?  Or am I asking the wrong question?  Is there a way for the normal C avr commands work in the arduino ide?  Am I making sense?
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That is definitely not a complete list.

From what I understand, you can use a lot of commands in C. However, what you are seeing is probably someone using a library of some sort.
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5594
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
However, what you are seeing is probably someone using a library of some sort.

Specifically, avr-libc:

http://www.nongnu.org/avr-libc/user-manual/index.html

Since the Arduino libraries are built on top of avr-libc, they too are available for your use. Note that they aren't as "user-friendly" as the Arduino libraries (the Arduino libs consist of many wrappers which abstract a lot of work away, among other things), but many of the library functions (such as strlen) are simple enough to grasp, especially with an example or two.
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome!  
Thanks!
« Last Edit: January 09, 2011, 09:42:49 pm by george_graves » Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As far as I know that function and a lot more are part of a tipical C compiler, so just get a good book about C programming smiley-wink
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great!  I've had an Ansi C class.

It's just weird to see there isn't a line in the sand between the command set for the IDE and the avr stuff.
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5594
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
As far as I know that function and a lot more are part of a tipical C compiler, so just get a good book about C programming.

More accurately, they are part of the standard C library set. However, the AVR version may have various differences from what you would find in the "full" version due to it being optimized for the AVR microcontroller family, so it would be better to reference the link I gave instead.

If you aren't well familiar with C/C++, though, I would recommend a book or two. One of the better ones is "C++ How to Program" by Deitel/Deitel. Its widely used in introductory (and likely advanced) C/C++ courses in universities and colleges.

http://www.deitel.com/books/cpphtp4/
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Pages: [1]   Go Up
Jump to: