CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 21:16:16 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=313d1874a150e4afc20e68c2275078bcb0b47e1982162b361aa75372fad0ad38a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22H360QD8kHheqEm4eyjEYKH77Gfj5HQaw%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d160a6983b8839-BLR
Lines: numbering, replacing tabs with arrows - Pastebin.com
SHARE
TWEET

Lines: numbering, replacing tabs with arrows
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* The utility reads text from stdin and prepends each line with a
- * number. If a line contains a tab character, the tab character gets
- * replaced with an arrow character. */
- #include <stdio.h>
- #define MAX_BUFF_SIZE 65536
- int main()
- {
- char buffer[MAX_BUFF_SIZE] = {};
- char *buff_ptr;
- int number = 1;
- int counter = 0;
- buff_ptr = fgets(buffer, MAX_BUFF_SIZE - 1, stdin);
- while(buff_ptr)
- {
- printf("%d. ", number);
- while(buffer[counter] != 0)
- {
- if(buffer[counter] == '\t')
- printf(" → ");
- else
- (void) putc(buffer[counter], stdout);
- counter += 1;
- }
- counter = 0;
- buff_ptr = fgets(buffer, MAX_BUFF_SIZE - 1, stdin);
- number += 1;
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 0
JavaScript | 2 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 5
JavaScript | 8 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 8 sec ago | 0.10 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 4
JavaScript | 12 sec ago | 0.25 KB
-
📌 Instant BTC Profit Method ✅ Working
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 17 sec ago | 0.25 KB
-
⭐⭐⭐ChangeNOW Exploit⭐⭐
Java | 21 sec ago | 0.10 KB
-
📌 Swapzone +37% glitch ⭐ V
JavaScript | 21 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand