Skip to content

2messmer/Alarm-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

# Alarm Clock (C)

A simple command-line alarm clock application written in C.

## Description

This program allows the user to set a specific time (hour and minute).

The system continuously checks the current local time and triggers an alarm message when the specified time is reached.

This project was developed as part of my C programming practice, focusing on time management functions and system-level operations.

## Features

- User-defined alarm time (HH MM format)

- Continuous time checking using system clock

- Console notification when the alarm time is reached

- Uses standard C time library functions

## Technical Concepts Demonstrated

- Use of time_t and struct tm

- Working with localtime()

- Infinite loop with condition checking

- System delay using sleep()

- User input handling with scanf()

## Project Structure

Alarm-Clock/

├── src/

│ └── main.c

└── README.md

## How to Compile

gcc src/main.c -o AlarmClock

## How to Run

./AlarmClock

## Author

NGUEDJIO Demessmer

Engineering Student – Computer Science

About

Simple command-line alarm clock written in C.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages