ITK Programming for Help Function

#include<stdio.h>
#include<conio.h>
#include<tc\tc.h>
#include<stdlib.h>
#include<tc\tc_startup.h>
#include<string.h>
#include<fclasses\tc_string.h>

int ITK_user_main(int argc, char *argv[])

{

int Ifail=0;

char* cUser=ITK_ask_cli_argument(“-u=”);

char* cPass=ITK_ask_cli_argument(“-p=”);

char* cGrp=ITK_ask_cli_argument(“-g=”);

char* chelp=ITK_ask_cli_argument(“-h”);

if(chelp)

{

printf(“\nplease put user name in -u”);

printf(“\nplease put user password in -p”);

printf(“\nplease put user group in -g”);

}

if(tc_strcmp(cUser, NULL) == 0 || tc_strcmp(cUser, “”) == 0 ||tc_strcmp(cPass, NULL) == 0 || tc_strcmp(cPass, “”) == 0  ||tc_strcmp(cGrp, NULL) == 0|| tc_strcmp(cGrp, “”) == 0 )

{

printf(“\nTC login unsuccessfully”);

}

else

{

Ifail= ITK_init_module(cUser,cPass,cGrp);

printf(“TC login successfully”);

}

return 0;

}


  Popular Teamcenter Article published



 


Four Easy Steps to Get Subscribed

Step1:-Enter your Email address and Hit SUBSCRIBE Button.

Step2:-Please check inbox and open the email with the subject lineConfirm your subscription for Global PLM“.

Step3:-Please click “Confirm Follow” and you got the email with the subject” Confirmed subscription to posts on Global PLM”.

Step4:-Voila, You are subscribed.Happy Learning


 

admin