Skip to content

Sh4uryaa/c-utility-libraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Number Utility Libraries

A collection of small C shared libraries implementing common number-property checks.

Libraries Included

  • Armstrong number check
  • Palindrome number check
  • Perfect number check
  • Prime number check
  • Strong number check

Compilation (example)

gcc -c -fPIC armstrong.c -o armstrong.o
gcc -shared -o libarmstrong.so armstrong.o

Usage

#include "armstrong.h"

int main() {
    if (armstrong(153)) {
        // number is armstrong
    }
    return 0;
}

Compile with:

gcc main.c -L. -larmstrong -o main

About

A collection of small C shared libraries implementing common number-property checks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages