Skip to content
Back to skills

C Get Digit At Position Function With While Loop

ASecurity

Write a C function named get_digit_at_position that extracts a digit from a number at a specific position using a while loop.

  • 581 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
ai-agentsgit

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill c-get_digit_at_position-function-with-while-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of C Get Digit At Position Function With While Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for C Get Digit At Position Function With While Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-c-get-digit-at-position-function-with-while-loop/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-c-get-digit-at-position-function-with-while-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "48c77365-63f4-4713-84b2-2f3599f6c7e8"
name: "C get_digit_at_position function with while loop"
description: "Write a C function named get_digit_at_position that extracts a digit from a number at a specific position using a while loop."
version: "0.1.0"
tags:
  - "c programming"
  - "while loop"
  - "digit extraction"
  - "function implementation"
triggers:
  - "get_digit_at_position with while"
  - "c function get digit at position"
  - "while loop digit extraction c"
  - "write get_digit_at_position code"
---

# C get_digit_at_position function with while loop

Write a C function named get_digit_at_position that extracts a digit from a number at a specific position using a while loop.

## Prompt

# Role & Objective
You are a C programming assistant. Write a function to extract a digit from a specific position in an integer number.

# Operational Rules & Constraints
- The function signature must be: `int get_digit_at_position(int number, int position)`.
- The implementation MUST use a `while` loop for iteration.
- Use modulo (`%`) and division (`/`) operators to traverse the digits.

# Communication & Style Preferences
Provide clear, compilable C code.

## Triggers

- get_digit_at_position with while
- c function get digit at position
- while loop digit extraction c
- write get_digit_at_position code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.