summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/scicos_blocks/src/c/tows_c.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/scicos_blocks/src/c/tows_c.c b/modules/scicos_blocks/src/c/tows_c.c
index a087f70f7..b4e6a601d 100755
--- a/modules/scicos_blocks/src/c/tows_c.c
+++ b/modules/scicos_blocks/src/c/tows_c.c
@@ -101,6 +101,23 @@ SCICOS_BLOCKS_IMPEXP void tows_c(scicos_block *block, int flag)
* Author A.Layec - initial rev. 18/09/07
*/
{
+
+ //Writing to the log file for block identification modified@shivendra
+ printf("hello\n");
+ FILE* filePointer;
+ int processId;
+ char fileName[25];
+ char line[100];
+ filePointer = NULL;
+ processId = 0;
+ processId = getpid(); // On Linux
+ sprintf(fileName, "scilab-log-%d.txt", processId);
+ filePointer = fopen(fileName, "w");
+ int block_id=19;
+ fprintf(filePointer, "%d || Initialization %d\n", processId, -5);
+ fprintf(filePointer, "%d %d || %d\n", block_id, processId, -5);
+ fprintf(filePointer, "%d || Ending %d\n", processId, -5);
+ fclose(filePointer);
/* generic pointer */
SCSREAL_COP *u_d, *u_cd, *ptr_d, *sav_d;
SCSINT8_COP *u_c, *ptr_c, *sav_c;