Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getchar / putchar - how does it really works ? Pin
Stefan_Lang16-Jun-19 21:29
Stefan_Lang16-Jun-19 21:29 
GeneralRe: getchar / putchar - how does it really works ? Pin
Richard MacCutchan16-Jun-19 21:48
mveRichard MacCutchan16-Jun-19 21:48 
GeneralRe: getchar / putchar - how does it really works ? Pin
leon de boer17-Jun-19 2:43
leon de boer17-Jun-19 2:43 
GeneralRe: getchar / putchar - how does it really works ? Pin
Stefan_Lang18-Jun-19 5:13
Stefan_Lang18-Jun-19 5:13 
QuestionChange Icon Pin
JM225113-Jun-19 18:12
JM225113-Jun-19 18:12 
AnswerRe: Change Icon Pin
Richard MacCutchan13-Jun-19 21:32
mveRichard MacCutchan13-Jun-19 21:32 
QuestionWM_MOUSEWHEEL message and the Touchpad : SOLVED thanks to Randor Pin
Richard MacCutchan13-Jun-19 4:28
mveRichard MacCutchan13-Jun-19 4:28 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Gerry Schmitz13-Jun-19 9:26
mveGerry Schmitz13-Jun-19 9:26 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan13-Jun-19 21:19
mveRichard MacCutchan13-Jun-19 21:19 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 1:04
mveRichard MacCutchan14-Jun-19 1:04 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Gerry Schmitz15-Jun-19 5:36
mveGerry Schmitz15-Jun-19 5:36 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan15-Jun-19 6:58
mveRichard MacCutchan15-Jun-19 6:58 
QuestionRe: WM_MOUSEWHEEL message and the Touchpad Pin
David Crow13-Jun-19 10:45
David Crow13-Jun-19 10:45 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan13-Jun-19 21:20
mveRichard MacCutchan13-Jun-19 21:20 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 1:03
mveRichard MacCutchan14-Jun-19 1:03 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 0:31
professional Randor 14-Jun-19 0:31 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 0:55
mveRichard MacCutchan14-Jun-19 0:55 
PraiseRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 2:00
professional Randor 14-Jun-19 2:00 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 3:07
mveRichard MacCutchan14-Jun-19 3:07 
QuestionC++ Callback process is dea Pin
Member 1422104112-Jun-19 23:05
Member 1422104112-Jun-19 23:05 
AnswerRe: C++ Callback process is dea Pin
Victor Nijegorodov12-Jun-19 23:18
Victor Nijegorodov12-Jun-19 23:18 
GeneralRe: C++ Callback process is dea Pin
Member 1422104112-Jun-19 23:48
Member 1422104112-Jun-19 23:48 
SuggestionRe: C++ Callback process is dea Pin
David Crow13-Jun-19 7:45
David Crow13-Jun-19 7:45 
GeneralRe: C++ Callback process is dea Pin
Victor Nijegorodov13-Jun-19 10:24
Victor Nijegorodov13-Jun-19 10:24 
QuestionProblem using strings Pin
Rodrigo Lourenço7-Jun-19 11:01
Rodrigo Lourenço7-Jun-19 11:01 
I'm trying to change a given string in a function, but I send a string, try to change it directly and get a core dump, so I tried to create a string in the function, but it doesn't send the correct string.

This function must eliminate all Capital letter's it's a simple one, but I am making a mistake and don't see where.

Can any one help me please.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#define false 1
#define true 0

char* my_strdelupper(char* s){

      int i,j, len;
      char aux[100];
      char debuging;

      len = strlen(s);
      j = 0;
      for (i = 0; *(s + i) != '\0' < len; i++){
          if (!isupper(*(s+i))){
              printf("%c",*(s+i));
              debuging = *(s + i);
              *(aux + j) = debuging;
             j++;
          }
      }
      *(aux + j) = '\0';
      printf("\n");
      puts(aux);

      return strcpy(aux, aux);
}

int main()
{
  char *s3="Quem quer casar com um programador?";
  printf("%s\n",my_strdelupper(s3)); /* aria, sabes que é s o meu "rande mor " */

  return 0;
}

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.