EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / Hi Chalani,So you need to

Hi Chalani,So you need to

|

Microcontroller › PIC › c program for gps based warning system when crossing boundaries › Hi Chalani,So you need to

July 25, 2012 at 5:37 pm #8331
AJISH ALFRED
Participant

Hi Chalani,

So you need to convert the string to intger value, right?

Here is a simple code for string to intger conversion. Please refer it, and apply in your code.

I’m not sure the atoi() will work on your compiler.

 

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main() {
  int i;
  i = atoi("100");                  // HERE IS THE CONVERSION
  printf("The integer value is: %d", i);
  getch();
  return 0;
}

 

Try and update the result

RSS Recent Posts

  • renewed interest in old project I call it WICKED 8 January 23, 2026
  • Expensive hobby January 23, 2026
  • analog logic of shmidt trigger bjt circuit January 23, 2026
  • getting no where fast 8 x 8 led matrix January 23, 2026
  • Micro mouse January 22, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise