Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seff34/string-reverser-in-c
Reverse String in C Standart Libs.
https://github.com/seff34/string-reverser-in-c
c c99 cpp reverse-string reverse-strings
Last synced: about 2 months ago
JSON representation
Reverse String in C Standart Libs.
- Host: GitHub
- URL: https://github.com/seff34/string-reverser-in-c
- Owner: seff34
- Created: 2022-08-22T17:52:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T17:29:30.000Z (over 2 years ago)
- Last Synced: 2023-10-16T18:35:20.469Z (about 1 year ago)
- Topics: c, c99, cpp, reverse-string, reverse-strings
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Reverse String in C
Reverse String in C Standart Libs.
## API Functions
#### Reverse String with Pointer
```c
char* reversePointer(char *array);
```| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `array` | `char*` | Input and Output Array |#### Reverse String with Index of Array
```c
char* reverseArray(char *array);
```| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `array` | `char*` | Input and Output Array |#### Example Code
```c
#include "stringReverse.h"int main(int argc, const char **argv)
{
(void)argc;
(void)argv;char array[] = "Reverse Me";
printf("Input - > %s\n",array);
reversePointer(array);
printf("Reverse with Pointer - > %s\n",array);
reverseArray(array);
printf("Reverse with Array - > %s\n",array);return EXIT_SUCCESS;
}
```## Download Code
Clone Project
```bash
git clone https://github.com/seff34/String-Reverser
```