Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I wrote a program named Kernel.c 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions. Recently, I updated the program completely onto an online ...
#3: Post edited
- I wrote a program named `Kernel.c` 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions.
- Recently, I updated the program completely onto an online compiler so anyone can use it not just on a university's coding sandbox (where I wrote it in the first place). I'm having trouble with inputting though.
You can take a look at the program [here](https://tio.run/##7Vx7c9NIEv8/n2LIVogdHGMnAZYEljKJWXxLHCoP2DuWc42lsT1YllwaOSZ7lc/Odc9oZD1GtpRk2VwdVCU4Uk9r5teP6e5p2dq2HOoOv/3EXcuZ2Yy8EIHNvfrol7X4JZ@7w@S1CQ1GySszl8PY5DUruJoyuPTtJ5sNuMvIcev33puL7uF556R7Rp6trVkj6pMtl07YwdoadwMyodyt4AfqD60aUffh8@Wnz9W1/6wR@McHpIJ3yS8vyW5VXlI35E0Yenxy2u51W8ftM/KSNHcOoptTWEgwqKy3T09PTnuHJ0ft3uG71tnZPlCRymJY9Q93vboY5rNg5rsxturWtfzNHMEWU3pBdkwzOmsfnrbPexdn7VOc0m6hKe2SSmyceU4xgvik8JkIao9OvBl8finhJNukqagGnk8kyhxuNQ7gvxdxerjw6FF6HXhfMbr8xMkj0vwcf6JeR8sK@CUNQGHIb8x3mVOv1xczFw5j00oz/EuPecscx6uRzuYkHFMjV97MJ4fbfSqYTSxvMp0FzIcB3tCnkwzD3RTD8xF1x0KuciZwKhNWIxsCx9XkOhKjd1KjO8SiLqFCgELjRMicByNiMT8A3QSGTGQmsBf@pdR1MHMBBc/tofp/Suh8iFmSovEZcF0PqDNeN91uytsWCsZ4f0fdp441c2jAjDS7kmbAmN2nlvkxe5KE@b7nG@8/kfdHzJkabz@Vt/sz7tjraTw917kiI3rJyLNolBKP6833QTK1nB8psDRYtQw@tQwit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f@U@HQzYfwE) as it's too long for me to publish here and find my problem there, but the basic summary is the first input, and probably the other string inputs, where when I input something, it only results in the first character.- If I type `talk`, I have `t`. If I type `feedback`, I have `f`. I think you get the picture.
- **Question**: How do I fix these inputs?
- I wrote a program named `Kernel.c` 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions.
- Recently, I updated the program completely onto an online compiler so anyone can use it not just on a university's coding sandbox (where I wrote it in the first place). I'm having trouble with inputting though.
- You can take a look at the program [here](https://tio.run/##7Vx7c9NIEv8/n2LIVogdHGMnAZYEljKJWXxLHCoP2DuWc42lsT1YllwaOSZ7lc/Odc9oZD1GtpRk2VwdVCU4Uk9r5teP6e5p2dq2HOoOv/3EXcuZ2Yy8EIHNvfrol7X4JZ@7w@S1CQ1GySszl8PY5DUruJoyuPTtJ5sNuMvIcev33puL7uF556R7Rp6trVkj6pMtl07YwdoadwMyodyt4AfqD60aUffh8@Wnz9W1/6wR@McHpIJ3yS8vyW5VXlI35E0Yenxy2u51W8ftM/KSNHcOoptTWEgwqKy3T09PTnuHJ0ft3uG71tnZPlCRymJY9Q93vboY5rNg5rsxturWtfzNHMEWU3pBdkwzOmsfnrbPexdn7VOc0m6hKe2SSmyceU4xgvik8JkIao9OvBl8finhJNukqagGnk8kyhxuNQ7gvxdxerjw6FF6HXhfMbr8xMkj0vwcf6JeR8sK@CUNQGHIb8x3mVOv1xczFw5j00oz/EuPecscx6uRzuYkHFMjV97MJ4fbfSqYTSxvMp0FzIcB3tCnkwzD3RTD8xF1x0KuciZwKhNWIxsCx9XkOhKjd1KjO8SiLqFCgELjRMicByNiMT8A3QSGTGQmsBf@pdR1MHMBBc/tofp/Suh8iFmSovEZcF0PqDNeN91uytsWCsZ4f0fdp441c2jAjDS7kmbAmN2nlvkxe5KE@b7nG@8/kfdHzJkabz@Vt/sz7tjraTw917kiI3rJyLNolBKP6833QTK1nB8psDRYtQw@tQwitcz6a5nl1jILrGXWlJDyE6OUk4v9OKIBsT2lNxQdGiOBB1dekUhl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vP7BMzba9kehCTf9A4QYbNQyb8HnZLY6IHmnoXvipw24IK4xXyE7C7GIl2UN4CHl/dV8oAeBw8K68tWubtslaEf2lk8Ar0@G8C8fT4cBWbGoYvRQ/L5RzlZck8yehZNaqDLOBhNa/YxS9qjYgPj7iZ2uZB2xcWsx4KkJWRGMedPqaSZLO/Diph9Ucy@RMy@5DFbzlAv9guuiVeX0pWw15XdbXl8ybJusOuVDWf53WTXZfoPDaJHm7mJ5A9II5IR/t7eLivzCPIttYMgl1XYX99t1yFq3OvWUa/1rvNr97gN6SuWb8r2Ujb3SCXBpbqikzJB/HdumAVeJII89127ddrrdM/OTy8OEaGfy/Ti/UwqaRbL@/HS1Ktz57R6x2NbTAEKxraForHdvBBytRdcEmkU83rfLdK4LlE5XKV4xcQkc7SCcnqDJSud1c3DYAPiC3lkgK8X4kkW4XgG86CoGLksd9jBKGeReCsbCiRSdjncEKur87Rk4p5vbphbf@wcnb/tydfrQC@el7G25yqLj3FY0fyaJL6zpOUvNxMlrP87OwmLGCWz9T15MgkBsozztuX2j029uPcv/hJMHRRiddQpmbUjf/O6z@FOvuVgAI1jc0C7E10zl4dzTBBLvII60xGt6NJwUQUL6WPhubm4nNWc67wEHxno8FwLqmwWGxaXaGRxtLjNpPOXPjCh@MUZOclLwYBvdYy9/K2Hou8jfI9sORRR3JT@FglZigl@f4sqFW@TZhV@Ubh2c1GR9VIC@qEvRfVFO9sfunLPdCV3FdF8bTVfezFf@4dux3Ubw4fvWWuNmIgptZj6Og71UTEDzebhle@v3WO1sDF@rxbZggXiN1iR8f@AxvzlpQX9Qun7f562jjvyNb9Gqdf8GouXWEMey7OdFHGxysKS09aL7m/dk4/dnipUXJxit8qzogeuz7Awkhqff@aaIc3vVzF8eVv3JGpY6LWOjtoS60Lf4EYqmbHmr3HLkOnj@eu1b9/wa5fWznUnCfal9BmdBRw8hXqbRXiE@vLttvq3Y@qPf@U@HQzYfwE) but the basic summary is the first input, and probably the other string inputs, where when I input something, it only results in the first character.
- If I type `talk`, I have `t`. If I type `feedback`, I have `f`. I think you get the picture.
- It might have to be from this portion:
- ```lang-c
- char *function;
- printf("What do you want me to do? ");
- scanf("%s", function); // the input function
- /* printf("You picked %s.\n", function)
- test that shows that only the first letter is taken when given input
- ```
- **Question**: How do I fix these inputs?
#2: Post edited
- I wrote a program named `Kernel.c` 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions.
Recently, I updated the program completely onto an online compiler so anyone can use it not just on a university's coding sandbox (where I wrote itin the first place). I'm having trouble with inputting though.- You can take a look at the program [here](https://tio.run/##7Vx7c9NIEv8/n2LIVogdHGMnAZYEljKJWXxLHCoP2DuWc42lsT1YllwaOSZ7lc/Odc9oZD1GtpRk2VwdVCU4Uk9r5teP6e5p2dq2HOoOv/3EXcuZ2Yy8EIHNvfrol7X4JZ@7w@S1CQ1GySszl8PY5DUruJoyuPTtJ5sNuMvIcev33puL7uF556R7Rp6trVkj6pMtl07YwdoadwMyodyt4AfqD60aUffh8@Wnz9W1/6wR@McHpIJ3yS8vyW5VXlI35E0Yenxy2u51W8ftM/KSNHcOoptTWEgwqKy3T09PTnuHJ0ft3uG71tnZPlCRymJY9Q93vboY5rNg5rsxturWtfzNHMEWU3pBdkwzOmsfnrbPexdn7VOc0m6hKe2SSmyceU4xgvik8JkIao9OvBl8finhJNukqagGnk8kyhxuNQ7gvxdxerjw6FF6HXhfMbr8xMkj0vwcf6JeR8sK@CUNQGHIb8x3mVOv1xczFw5j00oz/EuPecscx6uRzuYkHFMjV97MJ4fbfSqYTSxvMp0FzIcB3tCnkwzD3RTD8xF1x0KuciZwKhNWIxsCx9XkOhKjd1KjO8SiLqFCgELjRMicByNiMT8A3QSGTGQmsBf@pdR1MHMBBc/tofp/Suh8iFmSovEZcF0PqDNeN91uytsWCsZ4f0fdp441c2jAjDS7kmbAmN2nlvkxe5KE@b7nG@8/kfdHzJkabz@Vt/sz7tjraTw917kiI3rJyLNolBKP6833QTK1nB8psDRYtQw@tQwitcz6a5nl1jILrGX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it's too long for me to publish here and find my problem there, but the basic summary is the first input, and probably the other string inputs, where when I input something, it only results in the first character.
- If I type `talk`, I have `t`. If I type `feedback`, I have `f`. I think you get the picture.
- **Question**: How do I fix these inputs?
- I wrote a program named `Kernel.c` 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions.
- Recently, I updated the program completely onto an online compiler so anyone can use it not just on a university's coding sandbox (where I wrote it in the first place). I'm having trouble with inputting though.
- You can take a look at the program [here](https://tio.run/##7Vx7c9NIEv8/n2LIVogdHGMnAZYEljKJWXxLHCoP2DuWc42lsT1YllwaOSZ7lc/Odc9oZD1GtpRk2VwdVCU4Uk9r5teP6e5p2dq2HOoOv/3EXcuZ2Yy8EIHNvfrol7X4JZ@7w@S1CQ1GySszl8PY5DUruJoyuPTtJ5sNuMvIcev33puL7uF556R7Rp6trVkj6pMtl07YwdoadwMyodyt4AfqD60aUffh8@Wnz9W1/6wR@McHpIJ3yS8vyW5VXlI35E0Yenxy2u51W8ftM/KSNHcOoptTWEgwqKy3T09PTnuHJ0ft3uG71tnZPlCRymJY9Q93vboY5rNg5rsxturWtfzNHMEWU3pBdkwzOmsfnrbPexdn7VOc0m6hKe2SSmyceU4xgvik8JkIao9OvBl8finhJNukqagGnk8kyhxuNQ7gvxdxerjw6FF6HXhfMbr8xMkj0vwcf6JeR8sK@CUNQGHIb8x3mVOv1xczFw5j00oz/EuPecscx6uRzuYkHFMjV97MJ4fbfSqYTSxvMp0FzIcB3tCnkwzD3RTD8xF1x0KuciZwKhNWIxsCx9XkOhKjd1KjO8SiLqFCgELjRMicByNiMT8A3QSGTGQmsBf@pdR1MHMBBc/tofp/Suh8iFmSovEZcF0PqDNeN91uytsWCsZ4f0fdp441c2jAjDS7kmbAmN2nlvkxe5KE@b7nG@8/kfdHzJkabz@Vt/sz7tjraTw917kiI3rJyLNolBKP6833QTK1nB8psDRYtQw@tQwitcz6a5nl1jILrGXWlJDyE6OUk4v9OKIBsT2lNxQdGiOBB1dekUhlQL2AcuPTv/9w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f9A4QYbNQyb8HnZLY6IHmnoXvipw24IK4xXyE7C7GIl2UN4CHl/dV8oAeBw8K68tWubtslaEf2lk8Ar0@G8C8fT4cBWbGoYvRQ/L5RzlZck8yehZNaqDLOBhNa/YxS9qjYgPj7iZ2uZB2xcWsx4KkJWRGMedPqaSZLO/Diph9Ucy@RMy@5DFbzlAv9guuiVeX0pWw15XdbXl8ybJusOuVDWf53WTXZfoPDaJHm7mJ5A9II5IR/t7eLivzCPIttYMgl1XYX99t1yFq3OvWUa/1rvNr97gN6SuWb8r2Ujb3SCXBpbqikzJB/HdumAVeJII89127ddrrdM/OTy8OEaGfy/Ti/UwqaRbL@/HS1Ktz57R6x2NbTAEKxraForHdvBBytRdcEmkU83rfLdK4LlE5XKV4xcQkc7SCcnqDJSud1c3DYAPiC3lkgK8X4kkW4XgG86CoGLksd9jBKGeReCsbCiRSdjncEKur87Rk4p5vbphbf@wcnb/tydfrQC@el7G25yqLj3FY0fyaJL6zpOUvNxMlrP87OwmLGCWz9T15MgkBsozztuX2j029uPcv/hJMHRRiddQpmbUjf/O6z@FOvuVgAI1jc0C7E10zl4dzTBBLvII60xGt6NJwUQUL6WPhubm4nNWc67wEHxno8FwLqmwWGxaXaGRxtLjNpPOXPjCh@MUZOclLwYBvdYy9/K2Hou8jfI9sORRR3JT@FglZigl@f4sqFW@TZhV@Ubh2c1GR9VIC@qEvRfVFO9sfunLPdCV3FdF8bTVfezFf@4dux3Ubw4fvWWuNmIgptZj6Og71UTEDzebhle@v3WO1sDF@rxbZggXiN1iR8f@AxvzlpQX9Qun7f562jjvyNb9Gqdf8GouXWEMey7OdFHGxysKS09aL7m/dk4/dnipUXJxit8qzogeuz7Awkhqff@aaIc3vVzF8eVv3JGpY6LWOjtoS60Lf4EYqmbHmr3HLkOnj@eu1b9/wa5fWznUnCfal9BmdBRw8hXqbRXiE@vLttvq3Y@qPf@U@HQzYfwE) as it's too long for me to publish here and find my problem there, but the basic summary is the first input, and probably the other string inputs, where when I input something, it only results in the first character.
- If I type `talk`, I have `t`. If I type `feedback`, I have `f`. I think you get the picture.
- **Question**: How do I fix these inputs?
#1: Initial revision
Input taking only first character of a string
I wrote a program named `Kernel.c` 2 months into my life in programming and created 4 functions at the time, and now there are 7 functions. Recently, I updated the program completely onto an online compiler so anyone can use it not just on a university's coding sandbox (where I wrote itin the first place). I'm having trouble with inputting though. You can take a look at the program [here](https://tio.run/##7Vx7c9NIEv8/n2LIVogdHGMnAZYEljKJWXxLHCoP2DuWc42lsT1YllwaOSZ7lc/Odc9oZD1GtpRk2VwdVCU4Uk9r5teP6e5p2dq2HOoOv/3EXcuZ2Yy8EIHNvfrol7X4JZ@7w@S1CQ1GySszl8PY5DUruJoyuPTtJ5sNuMvIcev33puL7uF556R7Rp6trVkj6pMtl07YwdoadwMyodyt4AfqD60aUffh8@Wnz9W1/6wR@McHpIJ3yS8vyW5VXlI35E0Yenxy2u51W8ftM/KSNHcOoptTWEgwqKy3T09PTnuHJ0ft3uG71tnZPlCRymJY9Q93vboY5rNg5rsxturWtfzNHMEWU3pBdkwzOmsfnrbPexdn7VOc0m6hKe2SSmyceU4xgvik8JkIao9OvBl8finhJNukqagGnk8kyhxuNQ7gvxdxerjw6FF6HXhfMbr8xMkj0vwcf6JeR8sK@CUNQGHIb8x3mVOv1xczFw5j00oz/EuPecscx6uRzuYkHFMjV97MJ4fbfSqYTSxvMp0FzIcB3tCnkwzD3RTD8xF1x0KuciZwKhNWIxsCx9XkOhKjd1KjO8SiLqFCgELjRMicByNiMT8A3QSGTGQmsBf@pdR1MHMBBc/tofp/Suh8iFmSovEZcF0PqDNeN91uytsWCsZ4f0fdp441c2jAjDS7kmbAmN2nlvkxe5KE@b7nG@8/kfdHzJkabz@Vt/sz7tjraTw917kiI3rJyLNolBKP6833QTK1nB8psDRYtQw@tQwitcz6a5nl1jILrGXWlJDyE6OUk4v9OKIBsT2lNxQdGiOBB1dekUhlQL2AcuPTv/9wP29sWbElVs3mqW9/4p@Nphm7DwMCz/HmzK/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yE7C7GIl2UN4CHl/dV8oAeBw8K68tWubtslaEf2lk8Ar0@G8C8fT4cBWbGoYvRQ/L5RzlZck8yehZNaqDLOBhNa/YxS9qjYgPj7iZ2uZB2xcWsx4KkJWRGMedPqaSZLO/Diph9Ucy@RMy@5DFbzlAv9guuiVeX0pWw15XdbXl8ybJusOuVDWf53WTXZfoPDaJHm7mJ5A9II5IR/t7eLivzCPIttYMgl1XYX99t1yFq3OvWUa/1rvNr97gN6SuWb8r2Ujb3SCXBpbqikzJB/HdumAVeJII89127ddrrdM/OTy8OEaGfy/Ti/UwqaRbL@/HS1Ktz57R6x2NbTAEKxraForHdvBBytRdcEmkU83rfLdK4LlE5XKV4xcQkc7SCcnqDJSud1c3DYAPiC3lkgK8X4kkW4XgG86CoGLksd9jBKGeReCsbCiRSdjncEKur87Rk4p5vbphbf@wcnb/tydfrQC@el7G25yqLj3FY0fyaJL6zpOUvNxMlrP87OwmLGCWz9T15MgkBsozztuX2j029uPcv/hJMHRRiddQpmbUjf/O6z@FOvuVgAI1jc0C7E10zl4dzTBBLvII60xGt6NJwUQUL6WPhubm4nNWc67wEHxno8FwLqmwWGxaXaGRxtLjNpPOXPjCh@MUZOclLwYBvdYy9/K2Hou8jfI9sORRR3JT@FglZigl@f4sqFW@TZhV@Ubh2c1GR9VIC@qEvRfVFO9sfunLPdCV3FdF8bTVfezFf@4dux3Ubw4fvWWuNmIgptZj6Og71UTEDzebhle@v3WO1sDF@rxbZggXiN1iR8f@AxvzlpQX9Qun7f562jjvyNb9Gqdf8GouXWEMey7OdFHGxysKS09aL7m/dk4/dnipUXJxit8qzogeuz7Awkhqff@aaIc3vVzF8eVv3JGpY6LWOjtoS60Lf4EYqmbHmr3HLkOnj@eu1b9/wa5fWznUnCfal9BmdBRw8hXqbRXiE@vLttvq3Y@qPf@U@HQzYfwE) as it's too long for me to publish here and find my problem there, but the basic summary is the first input, and probably the other string inputs, where when I input something, it only results in the first character. If I type `talk`, I have `t`. If I type `feedback`, I have `f`. I think you get the picture. **Question**: How do I fix these inputs?