---
title: "Discussion on \"How to write a function that works similar to scanf in C?\" | Hashnode"
description: "Discussion on \"How to write a function that works similar to scanf in C?\". * However, all I end up seeing is either \"don't use scanf\" or \"here's a actual architecture string\", and never any examples of the \"better alternatives\" mentioned. \n                       *  For example, let's booty this atom of code: scanf(\"%c\", &c)..."
url: "https://hashnode.com/posts/how-to-write-a-function-that-works-similar-to-scanf-in-c/619630420b25eb28701f5d27"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to write a function that works similar to scanf in C?](https://rhnglobalinfo.hashnode.dev/how-to-write-a-function-that-works-similar-to-scanf-in-c?utm_source=hashnode&utm_medium=feed)

\* However, all I end up seeing is either "don't use scanf" or "here's a actual architecture string", and never any examples of the "better alternatives" mentioned. \* For example, let's booty this atom of code: scanf("%c", &c)...

Nov 18, 2021 · 1 min read · rhnglobalinfo.hashnode.dev  
Read the article

-   [#c](https://hashnode.com/tag/c)

## Written by

[R.Harinarayanan](https://hashnode.com/@Harinarayanan)

@Harinarayanan · Madurai, Tamil Nadu, India

  
[View profile](https://hashnode.com/@Harinarayanan)

Crowdsource influencer @ Google || Local guide @ Google

I am currently pursuing my Bachelor's degree B.com.c.a and Google crowdsource influencer. I will mentor crowdsource influencers across the world and gained more leadership experience. I love cloud technologies and completed AWS cloud solutions course.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
